Coamand not works
#1

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
Reply
#2

What the hell are you trying to explain?
Reply
#3


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

Whats the error?
Reply
#5


Код:
  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.
Reply
#6

maybe the " ! " in the first line ....
Reply
#7

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

tanks a lot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)