GTAOnline.net
San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: Tormus le 16 Mars 2010, 16:49:27
-
Bonjour, j'ai créer un gps avec un menu mais lorsque je charge le FS, il marche mais toutes les autres commandes ne fonctionne plus.
Voici le script : Pastebin (http://pastebin.gtaonline.fr/pastebin.php?show=747)
Aucune erreur et aucun warning a la compilation.
Merci de votre aide.
-
C'est cette callback de ton FS qui met le bazar :
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/gps", true) == 0)
{
SendClientMessage(playerid,COLOR_GREEN,"GPS activer");
ShowMenuForPlayer(GPS,playerid);
}
return 1;
}
Il faudrait qu'elle soit comme ceci :
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/gps", true) == 0)
{
SendClientMessage(playerid,COLOR_GREEN,"GPS activer");
ShowMenuForPlayer(GPS,playerid);
return 1;
}
return 0;
}
++
Syg
-
Merci beaucoup :)