GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: nivi le 12 Janvier 2011, 19:53:29

Titre: Grand probléme dans mon scripts!! ( loose indentation)
Posté par: nivi le 12 Janvier 2011, 19:53:29
Bonsoir,
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(40) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(142) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(162) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(175) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(182) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(212) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(216) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(223) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(234) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(236) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(241) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(243) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(248) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(255) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(257) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(261) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(263) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(267) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(273) : warning 217: loose indentation
C:\Documents and Settings\Matussek Heide\Bureau\MRC-RPf\gamemodes\mrc.pwn(276) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuP
20 Warnings.
Pouquoi il y a tout ces fautes?
Titre: Re : Grand probléme dans mon scripts!! ( loose indentation)
Posté par: nivi le 12 Janvier 2011, 21:01:55
Merci il me reste 8 faute a corriger
Titre: Re : Grand probléme dans mon scripts!! ( loose indentation)
Posté par: Damien_Lohier le 13 Janvier 2011, 20:01:54
Effectivement, un code mal aligné crée des warning et non des erreurs   ;)

Si une condition commence par:
      if...
Il ne faut pas mettre:
                if...
Sinon warning!
Titre: Re : Grand probléme dans mon scripts!! ( loose indentation)
Posté par: Damien_Lohier le 13 Janvier 2011, 20:28:11
Oui désolé je me suis... comment dire.. xD
Titre: Re : Grand probléme dans mon scripts!! ( loose indentation)
Posté par: Xartrick le 13 Janvier 2011, 21:09:21
Dizzy-Beno, un switch est une condition, spéciale, certes, mais une condition tout de même, et elle ne commence pas par if.
Titre: Re : Grand probléme dans mon scripts!! ( loose indentation)
Posté par: Xartrick le 14 Janvier 2011, 18:26:43
Je veux dire par spécial que cela ne commence pas par le mot clé if.
Titre: Re : Grand probléme dans mon scripts!! ( loose indentation)
Posté par: Xartrick le 14 Janvier 2011, 18:36:53
Si on veut mais non, ce n'est pas vraiment ça.
Bref, place au sujet.