GTAOnline.net
San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: Jcvag44800 le 05 Novembre 2010, 18:13:58
-
Salut à vous .
Je crée mon topic car j'apprends à scripter en ce moment , et j'ai pas mal de question afin d'approfondir met connaissances .
Voici ma première question .
Je viens de crée une condition ( dite moi ci c'est bien ça ^^ ) . La voici :
{
if(GetPlayerMoney(playerid) >= 10000)
{
SendClientMessage(playerid,0xFFFFFF,"Tu as beaucoup d'argent !");
}
else
{
SendClientMessage(playerid,0xFFFFFF,"Tu es pauvre toi :p");
}
return 1;
}
Mais quand je compile, j'ai ce warning : warning 217: loose indentation
Merci à vous
-
C'est normal le "{" à la première ligne ?!
-
Oui car j'ai ça avant :
public OnPlayerText(playerid, text[])
{
if(GetPlayerMoney(playerid) >= 25000)
-
Bonsoir, je vous conseil de lire ce topic: http://www.gtaonline.fr/forums/index.php/topic,6250.0.html (http://www.gtaonline.fr/forums/index.php/topic,6250.0.html) concernant l'indentation.
Bon courage,
Vincent.