[GUIDA] Creazione di uno script
#121
Inviato il 06 ottobre 2009 - 17:01
ma mi dice: C:\Users\tonino3565\Server PC OEM 340\gamemodes\new2.pwn(54) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
comunque è un "warning" e significa qualkosa: dove ho sbagliato?
S/O: Windows Vista Home Premium (Versione 6.0.6000)
Classificazione: 8,6
Processore: AMD Athlon 64 X2 Dual Core Processor 5000+ ~5.00 GHz
Memoria (RAM): 6070MB
Tipo di sistema: Sistema operativo a 32 bit
Scheda Video: NVIDIA GeForce 8500GT SEB 1024MB
FPS GTA San Andreas: +60 (Qualità massima - Senza Limitatore di frame)
FPS GTA IV: 59/60 (Qualità massima)
#122
Inviato il 06 ottobre 2009 - 17:45
#pragma tabsize 0
Per seconda cosa, leggiti il regolamento, evita di floodare (significa mandare 2 o piu' messaggi di fila) ed o scrivere con tante emoticon o pieno di caratteri insignificanti (punti esclamativi e compagnia).
#123
Inviato il 10 ottobre 2009 - 14:09
aiutatemi
piu informazioni: mi dice C:\Users\tonino3565\Server PC OEM 340\gamemodes\Cazzeggio.pwn(7) : error 021: symbol already defined: "format"
OK ho risolto il problema ma ora quando compilo esce scritto "Pawno Compiler Ha smesso di funzionare"
S/O: Windows Vista Home Premium (Versione 6.0.6000)
Classificazione: 8,6
Processore: AMD Athlon 64 X2 Dual Core Processor 5000+ ~5.00 GHz
Memoria (RAM): 6070MB
Tipo di sistema: Sistema operativo a 32 bit
Scheda Video: NVIDIA GeForce 8500GT SEB 1024MB
FPS GTA San Andreas: +60 (Qualità massima - Senza Limitatore di frame)
FPS GTA IV: 59/60 (Qualità massima)
#125
Inviato il 24 ottobre 2009 - 21:35
(1411) :warning 219: local variable "string" shadows a variable at apreceding evel (1898) : warning 219: local variable "string" shadows a variable at a preceding level
riga 1411=
new string[256],cmd[256],idx;(se cancello sta riga mi da 4 errori
riga 1898=
strtok(const string[], &index,seperator=' ')
#126
Inviato il 25 ottobre 2009 - 10:16
[FS]_All3Xz_ Anti-Cheat 4
[FS]_All3Xz_ Anti-Cheat 7
[FS]_All3Xz_ Anti-Cheat 8
[GM] PVCM Training 0.? (MySQL)
[APP]_All3Xz_ NPC Generator
[GUIDA] Leggere da file usando dini
[GUIDA] Scripting GTA:IV - Callbacks
[GM] PVCM Training 1 (MySQL)
[GM] PVCM A/D
[GUIDA] Leggere da file usandi dini 2
#132
Inviato il 26 dicembre 2009 - 19:35
Mi appare questa scritta:
C:\Documents and Settings\Groove's Man\Desktop\samp03asvr_R4_win32(2)\gamemodes\TheShoot.pwn(83) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Groove's Man\Desktop\samp03asvr_R4_win32(2)\gamemodes\TheShoot.pwn(83) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Groove's Man\Desktop\samp03asvr_R4_win32(2)\gamemodes\TheShoot.pwn(84) : error 010: invalid function or declaration
C:\Documents and Settings\Groove's Man\Desktop\samp03asvr_R4_win32(2)\gamemodes\TheShoot.pwn(121) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Groove's Man\Desktop\samp03asvr_R4_win32(2)\gamemodes\TheShoot.pwn(127) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Groove's Man\Desktop\samp03asvr_R4_win32(2)\gamemodes\TheShoot.pwn(133) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Perchè?
Io in quelle file ho scritto:
(83) GameTextForPlayer(playerid,"~b~Benvenuto ~n~~w~in ~n~~r~The Shooter, 5000, 3");
(84) return 1;
(121) SetPlayerPos(playerid,1718.2858,-2483.1096,13.5547,262.0000);
(127) SetPlayerPos(playerid,1563.5311,1682.5177,10.8203,79.1552);
(133) SetPlayerPos(playerid,-343.7183,1543.5690,75.5625,174.91583);
Per favore aiutatemi
nn so più cm fare
|| Guide (non importanti)
||Convert FFS
|| xStreamer
\\---------------------------------//
#133
Inviato il 26 dicembre 2009 - 19:44
(121) SetPlayerPos(playerid,1718.2858,-2483.1096,13.5547);
(127) SetPlayerPos(playerid,1563.5311,1682.5177,10.8203);
(133) SetPlayerPos(playerid,-343.7183,1543.5690,75.5625);
EDIT: avevi messo la quarta coordinata che nn esiste nei setplayerpos
per gli altri posta la tua gm
#134
Inviato il 26 dicembre 2009 - 22:06
Avvio il server e gioco. Poi prendo un auto, schizzo a tutta velocità, faccio un'acrobazia e nella zona chat mi appare una lista di errori, mi si crasha il gioco e mi appare una finestra con su scritto:
Sa mp is crashed.
Exception At Address: 0x00000003
Registers:
EAX: 0x00000000 EBX: 0x00000001 ECX: 0x00A903D0 EDX: 0x00000003
ESI: 0x00A903D0 EDI: 0x00A904B0 EBP: 0x0022FDCC ESP: 0x0022FD54
EFLAGS: 0x00210202
Stack:
+0000: 0x00469FF7 0x00001458 0x00A903D0 0x00000000
+0010: 0x0046A220 0x00000000 0x00000000 0x0022FDCC
+0020: 0x00000000 0x0000002F 0x0022FDBC 0x0083C528
+0030: 0xFFFFFFFF 0x0053BFCC 0x0000001A 0x00029117
+0040: 0x00000000 0x0022FD9C 0x00369E99 0x0000002F
+0050: 0x02FFD714 0x0000001A 0x00029117 0x00000000
+0060: 0x0022FDA8 0x0022F978 0x0022FFB0 0x030195CC
+0070: 0x0302AFA0 0x00000000 0x7E3ADEB2 0x0053E986
+0080: 0x00000001 0x7C91D8BA 0x7C80A4DB 0x0053ECC2
+0090: 0x00000001 0x00619B71 0x0000001A 0x00000001
+00A0: 0x00000001 0x0000000A 0x00748DA0 0x0000001A
+00B0: 0x00000001 0x7C80B741 0x00000000 0x0022FFC0
+00C0: 0x7FFDF000 0x016B0000 0x4205DD3D 0x028D0048
+00D0: 0x00000008 0x00000100 0x00000008 0x00000102
+00E0: 0x44000000 0x43C00000 0x00000000 0x00000000
+00F0: 0x00000400 0x00000300 0x00000000 0x00000DFB
+0100: 0x001104D6 0x00000200 0x00000000 0x01800200
+0110: 0x010A5630 0x00000200 0x00000180 0x0000002C
+0120: 0x00000000 0x7FFDF000 0x0022FFB0 0x00825EA4
+0130: 0x00887E20 0xFFFFFFFF 0x0022FE70 0x00835342
SCM Op: 0x6BD, lDbg: 0
Game Version: US 1.0
State Information: Ped Context: 0
--------------------------------------------------------------------------------------------
Xkè mi appare? cosa ho fatto di male?
|| Guide (non importanti)
||Convert FFS
|| xStreamer
\\---------------------------------//
#136
Inviato il 26 dicembre 2009 - 22:34
|| Guide (non importanti)
||Convert FFS
|| xStreamer
\\---------------------------------//
#137
Inviato il 27 dicembre 2009 - 10:42
AddPlayerClass(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo )
e si mette in Ongamemodeinit.
Si usa cosi:
Scegliere la skin e fare /save nel game,uscire dal game,andare nella cartella programmi/gta sa/rockstar games/savedposition.txt e prendi la tua addplayerclass e la metti nel tuo pawno,premi f5 e tutto apposto
Mie Map
[MAP]House
[MAP]Casinò Ricky Edition
[APP]Programmi Utili Pawno
#138
Inviato il 27 dicembre 2009 - 16:32
|| Guide (non importanti)
||Convert FFS
|| xStreamer
\\---------------------------------//
#139
Inviato il 28 dicembre 2009 - 11:38
http://wiki.sa-mp.co...ayerFacingAngle
Si usa così:
SetPlayerFacingAngle(playerid,float);
su float metti se ricordo nella mia gm c'era 88.0
Per il 2:
UsePlayerPedAnims();
In OnGameModeINit
Mie Map
[MAP]House
[MAP]Casinò Ricky Edition
[APP]Programmi Utili Pawno