• 06 Juin 2026, 21:16:07


Auteur Sujet: [Resolu]Probleme CMD!!!  (Lu 1813 fois)

0 Membres et 1 Invité sur ce sujet

Hors ligne omar93500

  • *
  • Tueur en série
  • Scripteur PHP/HTML/MySQL/Pawno/(Aprrenti)Visual B.
  • Messages: 111
    • Voir le profil
[Resolu]Probleme CMD!!!
« 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!
« Modifié: 28 Octobre 2007, 17:44:08 par omar93500 »
________________________Script:____________________________
                                       [FS]Entrer dans ...
                           L'Andromada en tant que passager:
                  http://www.gtaonline.fr/forums/index.php/topic,2127.0.html
                             Le shamal en tant que passager:
                  http://www.gtaonline.fr/forums/index.php/topic,2126.0.html
                                        Credit: Creer par BeckyBoiz

Hors ligne Syg

  • Expert programmeur C/C++/PAWN
  • *
  • The GTAOnline Jesus
  • Messages: 3908
    • Voir le profil
Re : [Resolu]Probleme CMD!!!
« Réponse #1 le: 28 Octobre 2007, 23:40:57 »
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
Courtesy of GtaManiac