GTAOnline.net
San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: BaBar le 11 Décembre 2007, 18:27:49
-
Bonjour,
Voila j'ai des erreurs sur mon script quelqu'un pourrait me les corriger s'il vous plait ?
Voila les erreurs :
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(292) : warning 225: unreachable code
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(292) : warning 217: loose indentation
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(292) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(292) : error 004: function "OnPlayerSpawn" is not implemented
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(295) : error 001: expected token: ";", but found "if"
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(295) : warning 217: loose indentation
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(301) : error 036: empty statement
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Voila mon script:
http://pastebin.gtaonline.fr/pastebin.php?show=236
-
Certaine erreur peuvent venir seulement d'un ligne. Va voir ta ligne 295 et met un ";" à la fin.
-
justement fallait que je les enléves :boulz .
Et maintenant 3 erreurs :
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(292) : warning 225: unreachable code
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(292) : warning 217: loose indentation
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(292) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(292) : error 004: function "OnPlayerSpawn" is not implemented
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(295) : error 001: expected token: ";", but found "if"
C:\Program Files\Rockstar Games\gamemodes\sftdm.pwn(295) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
On pourrait encore m'aider ?
http://pastebin.gtaonline.fr/pastebin.php?show=237
-
Tu a oublier un " { " a la ligne 293
et tu a oublier un 2eme " } " a la ligne 282 , compile et redit nous si ta encore des errors :)
-
Indentation, INDENTATION !!!! Je me tue à le répèter !!!! Même le compilo le dit (loose indentation).
Avec un script bien indenté, on voit tout de suite qu'il manque des accolades ....
++
Syg
-
ça marche, merci pour votre aide ! :cheers