GTAOnline.net
San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: omar93500 le 28 Octobre 2007, 17:37:32
-
Voila j'ai un probleme des ke je tape /buygun ,dont voici le code:
if (Check2)
if (strcmp(cmdtext, "/buygun", true)==0){
SendClientMessage(playerid,COLOR_GREY,"swanoff (500$), MP5(250$),katana(50%),M4(350$)");
SendClientMessage(playerid,COLOR_GREY,"AK47 (500$), grenades(100$),golf club(50%),vie(75$)");
SendClientMessage(playerid,COLOR_GREY,"Toute les munitions sont a 75");
return 1;
}Sa m'execute la CMD /exit!:
if (Check2)
if (strcmp(cmdtext, "/exit", true)==0){
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 2200.4299, 1393.8945, 11.0625);
return 1;
}Voila merci!
-
Je ne peux pas te dire où est ton problème si tu ne montres pas la totalité de ta fonction OnPlayerCommandText.
Donc mets la dans le pastebin (http://pastebin.gtaonline.fr/pastebin.php)
++
Syg