SA-MP Forums Archive
Coamand not works - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Coamand not works (/showthread.php?tid=98124)



Coamand not works - monster010 - 19.09.2009

Why is not it better to coamnda? I struggled to do 30 minute to compile but appears dont' send
Please help me
Код:
  if(!strcmp(cmdtext, "/vamasf", true))
  {
    if(IsPlayerConnected(playerid))
    {
      if(PlayerToPoint(3.0,playerid,2311.5459,-10.8236,26.7422))
      {
  	       SetObjectRot(vama1,2.5783, 21.4859, 225.8595);
         SetTimer("GateClose", 5000, 0);
         SendClientMessage(playerid, COLOR_LIGHTRED, "Bun Venit in SF. Taxa de intrare a fost de : 50$");
         GivePlayerMoney(playerid,-50);
         PlayerInfo[playerid][pPasaportLic] = 1;
      }
     }
   }
   return 1;
}
Tanks


Re: Coamand not works - Jakku - 19.09.2009

What the hell are you trying to explain?


Re: Coamand not works - monster010 - 19.09.2009


In this command gives me an error don't send when compiling


Re: Coamand not works - Kyle - 19.09.2009

Whats the error?


Re: Coamand not works - 0ne - 19.09.2009


Код:
  if(!strcmp(cmdtext, "/vamasf", true))
  {
    if(IsPlayerConnected(playerid))
    {
      if(PlayerToPoint(3.0,playerid,2311.5459,-10.8236,26.7422))
      {
  	       SetObjectRot(vama1,2.5783, 21.4859, 225.8595);
         SetTimer("GateClose", 5000, 0);
         SendClientMessage(playerid, COLOR_LIGHTRED, "Bun Venit in SF. Taxa de intrare a fost de : 50$");
         GivePlayerMoney(playerid,-50);
         PlayerInfo[playerid][pPasaportLic] = 1;
      }
     }
    return 1;
  }
Should work now.


Re: Coamand not works - silvan - 19.09.2009

maybe the " ! " in the first line ....


Re: Coamand not works - 0ne - 19.09.2009

I just gave him the right code he had an EXTRA BRACKET before return 1;


Re: Coamand not works - monster010 - 19.09.2009

tanks a lot