GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: » Lukubi™ le 01 Octobre 2008, 17:03:39

Titre: probleme pawn (erreur)
Posté par: » Lukubi™ le 01 Octobre 2008, 17:03:39
salut a tous j'ai un probleme, je me suis lancé dans la traduction d'un FS pour mon serveur RPG et j'ai 5 erreurs que je n'arrive pas a reglé


voila ce que le pawno me sort comme erreurs :

D:\fichier samp\mod carburant rpg traduis.pwn(72) : warning 217: loose indentation
D:\fichier samp\mod carburant rpg traduis.pwn(82) : warning 217: loose indentation
D:\fichier samp\mod carburant rpg traduis.pwn(108) : warning 217: loose indentation
D:\fichier samp\mod carburant rpg traduis.pwn(132) : warning 217: loose indentation
D:\fichier samp\mod carburant rpg traduis.pwn(165) : warning 217: loose indentation
D:\fichier samp\mod carburant rpg traduis.pwn(165) : error 001: expected token: ",", but found "-string-"
D:\fichier samp\mod carburant rpg traduis.pwn(165) : warning 215: expression has no effect
D:\fichier samp\mod carburant rpg traduis.pwn(167) : warning 217: loose indentation
D:\fichier samp\mod carburant rpg traduis.pwn(169) : error 037: invalid string (possibly non-terminated string)
D:\fichier samp\mod carburant rpg traduis.pwn(169) : error 017: undefined symbol "reservoir"
D:\fichier samp\mod carburant rpg traduis.pwn(169) : error 017: undefined symbol "est"
D:\fichier samp\mod carburant rpg traduis.pwn(169) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.


voila mon FS:

lien pastebin (http://pastebin.gtaonline.fr/pastebin.php?show=488)


quelqu'un pourait me donner la solution ou me reglé les problemes svp

edit: lien pastebin

merci

tarick
Titre: Re : probleme pawn (erreur)
Posté par: Ssk le 01 Octobre 2008, 17:22:14
est ce que tu peut mette le Script dans Pastebin
Titre: Re : probleme pawn (erreur)
Posté par: » Lukubi™ le 01 Octobre 2008, 17:36:20
sa y est c'est fait
 :D
Titre: Re : probleme pawn (erreur)
Posté par: HeyC le 01 Octobre 2008, 17:44:52
Hey, tarick les WARNING tu peux les laisser
Il te reste plus que à corriger

D:\fichier samp\mod carburant rpg traduis.pwn(165) : error 001: expected token: ",", but found "-string-"
D:\fichier samp\mod carburant rpg traduis.pwn(169) : error 037: invalid string (possibly non-terminated string)
D:\fichier samp\mod carburant rpg traduis.pwn(169) : error 017: undefined symbol "reservoir"
D:\fichier samp\mod carburant rpg traduis.pwn(169) : error 017: undefined symbol "est"
D:\fichier samp\mod carburant rpg traduis.pwn(169) : fatal error 107: too many error messages on one line
Titre: Re : probleme pawn (erreur)
Posté par: » Lukubi™ le 01 Octobre 2008, 17:51:37
oui sa je sait clem mais je sait pas comment reglé les erreurs c'est pour sa que je post ici on en a déjà parlé sur msn rapel toi


( :birthday to me :lmao)
Titre: Re : probleme pawn (erreur)
Posté par: [StAfF]MaN le 01 Octobre 2008, 17:54:02
bah c'est pas compliqué :


ligne 165 :

SendClientMessage(playerid,YELLOW"* ce véhicule est déjà démaré! *");

ligne 169:

SendClientMessage(playerid,WHITE,"* le reservoir est vide!");

ce qui est en rouge c'est ce que tu as zappé ^^

voila ;)

ensuite les warnings, non il ne faut pas les laisser... Ce ne sont que des losse identation mais en faite c'est parce que tu as mal aligné les lignes de code ;)
Titre: Re : probleme pawn (erreur)
Posté par: » Lukubi™ le 01 Octobre 2008, 17:57:46
merci mec sa marche mais maintenant ya sa ^^ (il vont me tuer)

D:\FICHIE~1\MODCAR~1.PWN(157 -- 172) : error 010: invalid function or declaration

alors merci pour tout et maintenant il fodrait coriger sa svp

merci

tarick
Titre: Re : Re : probleme pawn (erreur)
Posté par: [StAfF]MaN le 01 Octobre 2008, 18:03:12
merci mec sa marche mais maintenant ya sa ^^ (il vont me tuer)

D:\FICHIE~1\MODCAR~1.PWN(157 -- 172) : error 010: invalid function or declaration

alors merci pour tout et maintenant il fodrait coriger sa svp

merci

tarick

On est pas tes chiens....

comme je suis sympa :

public OnPlayerStateChange(playerid, newstate, oldstate)

{

    new VID = GetPlayerVehicleID(playerid);

    new MOD = GetVehicleModel(playerid);

    new string[128];

 

    if(newstate == PLAYER_STATE_DRIVER)

        {

            format(string, sizeof(string), "~g~%s",VehicleTittle[GetVehicleModel(VID)-400]);

            GameTextForPlayer(playerid,string,3500,1);

           

                        SendClientMessage(playerid,YELLOW"* ce véhicule est déjà démaré! *";

                }

                if(VehicleGas[VID] < 1)

                {

                        SendClientMessage(playerid,WHITE,"* le reservoir est vide!;

                }

        }   // SUPPRIME CETTE ACCOLADE, ELLE SERT A RIEN

        return 1;

}
Titre: Re : probleme pawn (erreur)
Posté par: » Lukubi™ le 01 Octobre 2008, 18:31:38
merci

mais ne le prend pas comme sa man je suis desolé si j'ai mal formuler ma phrase  :-[ :( ;D

désolé je ne vous prend pas pour des chien pour moi vous etes des amis de gtaonline qui m'aide pour mon script  :cheers


et encore merci pour ton aide
Titre: Re : probleme pawn (erreur)
Posté par: [StAfF]MaN le 01 Octobre 2008, 19:41:25
De rien ;)