GTAOnline.net
San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: akcayir le 03 Juillet 2008, 11:10:08
-
Bonjour
J'ai telecharger un nouveaux GM et j'ai plusieur erreur. Pouvez vous m'aider a les resoudre moi j'ai pensez que je n'est pas les includes mais je suis pas sur et aussi si 'cest un PB d'includes pouver vous m'aider a les trouver. PLZ
Voici les erreur:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(460) : warning 235: public function lacks forward declaration (symbol "PlayerLeaveGang")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(509) : warning 235: public function lacks forward declaration (symbol "getCheckpointType")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(513) : warning 235: public function lacks forward declaration (symbol "isPlayerInArea")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(524) : warning 235: public function lacks forward declaration (symbol "PayPlayerInArea")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(542) : warning 235: public function lacks forward declaration (symbol "TimeUpdate")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(557) : warning 235: public function lacks forward declaration (symbol "UnlockVehicleUpdate")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(583) : warning 235: public function lacks forward declaration (symbol "DeathmatchUpdate")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(604) : warning 235: public function lacks forward declaration (symbol "PirateShipScoreUpdate")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(617) : warning 235: public function lacks forward declaration (symbol "GambleUpdate")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(655) : warning 235: public function lacks forward declaration (symbol "checkpointUpdate")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(680) : warning 235: public function lacks forward declaration (symbol "PropertyScoreUpdate")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(725) : warning 235: public function lacks forward declaration (symbol "SavedUpdate")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(1835) : warning 235: public function lacks forward declaration (symbol "AutoLockCasinoVehicles")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(1907) : warning 235: public function lacks forward declaration (symbol "SellWangExportVehicle")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(1943) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterDeathmatch")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(2712) : warning 235: public function lacks forward declaration (symbol "AddVehicle")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(2716) : warning 235: public function lacks forward declaration (symbol "SendPlayerFormattedText")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(2723) : warning 235: public function lacks forward declaration (symbol "SendAllFormattedText")
-
ta du oublié une ou plusieur acolades
compte ce que tu as modifier tu fais sa { pour ouvrir et sa } pour fermer si la comme sa
{
{
l'aura deux acolades pour fermer
}
}
++
David ;)
-
Je vais essayer ce que je peut faire (Si j'arrive)
-
ou si s'est pas sa faut faire des forward de t'est public
forward .....;
++
David ;)
-
Alors voila j'ai fait ce que j'ai put faire et j'ai reussi pas mal de chose quand meme, il me reste encore 7 erreur mai je n'arrive pas a les résoudre.
Je vous donne est mis l'endroit ou il y a des erreur:
Pastebin (http://pastebin.gtaonline.fr/pastebin.php?show=451)
Et les erreurs sont le suivant:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(453) : warning 235: public function lacks forward declaration (symbol "PlayerLeaveGang")
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(503) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(503) : error 017: undefined symbol "getCheckpointType"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(505) : error 017: undefined symbol "playerID"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(508) : warning 225: unreachable code
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(508) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(508) : error 017: undefined symbol "IsPlayerInArea"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(508) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(508) : error 001: expected token: ";", but found "]"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(508) : fatal error 107: too many error messages on one line
Je vais essayer de faire de forward si sa marche!!!
-
Il me reste plus que 4 erreurs et c'est fini
Tu aavait résond il me manquait un forward.
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(71) : error 001: expected token: "(", but found "new"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(71) : error 001: expected token: ";", but found "-identifier-"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(71) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\lvdmodpbgdm.pwn(71) : fatal error 107: too many error messages on one line
-
A la ligne 71 y a quoi?
-
Tu as oublié d'ouvrir une parenthèse à un endroit, verifie bien à la ligne 71 que il y a bien 1 ou 2 parenthèse qui s'ouvre et qui se referment
-
A la ligne 71 il y à :
new CashScoreOld; ça
je n'est pas compris ce qu'il faut faire
-
Qu'est-ce qu'il y a avant cette ligne ?
-
Alexandre voila je t'est mi le debut du GM si tu veut je peut te le mettre en entier
Tien le lien Pastebin (http://pastebin.gtaonline.fr/pastebin.php?show=452)
-
Personne ne sais d'ou peut venir l'erreur?
-
Ouais bah voila, ton précédent forward il manque les parenthèses et le point-virgule.
http://forum.sa-mp.co.uk/index.php/topic,248.0.html#post_forward
++
Alexandre
-
Ouais bah voila, ton précédent forward il manque les parenthèses et le point-virgule.
http://forum.sa-mp.co.uk/index.php/topic,248.0.html#post_forward
++
Alexandre
Bah j'ai rajoutr les parenthese et le point virgule (); come sa a la fin du forward mais sa me trouve des autre erreurs.. Je n'ai rien compris de ca je corrige les erreurs y'en a d'autre qui arrive. Je pense que je vais laisser tomber et laisser les warning comme il sont si sa ne j'aine pas le bon fonctionnement du server.
-
:blink *gène * :D
Sinon envoie les erreurs que tu obtient. ;)
++
Alexandre