Errors with arrays and strings
#3

Thanks!!!!!! I'll test it

EDIT:

I wrote a command with that function:

pawn Код:
if(strcmp(cmdtext, "/creabiz", true) == 0)
  {
      if(!IsPlayerAdmin(playerid)) return 1;
      tmp = strtok(cmdtext,idx);
      if(!strval(tmp)) return SendClientMessage(playerid, COLOR_RED, "USO: /creabiz [Costo].");
      new Float:X,Float:Y,Float:Z;
      GetPlayerPos(playerid, X, Y, Z);
      new int = GetPlayerInterior(playerid);
      new vw = GetPlayerVirtualWorld(playerid);
      CreateBusiness("Il Mio Business", strval(tmp), X, Y, Z, int, vw);
      return 1;
  }
But it says ' Unknown Command ' even if I am logged as admin
Reply


Messages In This Thread
Errors with arrays and strings - by Sasino97 - 14.03.2011, 19:27
Re: Errors with arrays and strings - by Kwarde - 14.03.2011, 19:29
Re: Errors with arrays and strings - by Sasino97 - 14.03.2011, 19:36
Re: Errors with arrays and strings - by Sasino97 - 14.03.2011, 20:12
Re: Errors with arrays and strings - by Kwarde - 14.03.2011, 20:14
Re: Errors with arrays and strings - by Sasino97 - 14.03.2011, 20:19
Re: Errors with arrays and strings - by Kwarde - 14.03.2011, 20:34
Re: Errors with arrays and strings - by Sasino97 - 14.03.2011, 20:49
Re: Errors with arrays and strings - by Sasino97 - 15.03.2011, 19:01
Re: Errors with arrays and strings - by Sasino97 - 17.03.2011, 17:34

Forum Jump:


Users browsing this thread: 1 Guest(s)