Errors with arrays and strings
#8

Did, but look at this screenshot

After doing /createbiz 1500



CODE:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  new cmd[180];
  new tmp[180];
  new index;
  cmd = strtok(cmdtext,idx);

  if(strcmp(cmdtext, "/createbiz", true) == 0)
  {
      if(!IsPlayerAdmin(playerid)) return 1;
      tmp = strtok(cmdtext,idx);
      if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "USO: /createbiz [Price].");
      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;
  }
  return GameTextForPlayer(playerid,"~r~Comando Inesistente",1000,5);
}
EDIT: Oops, too large picture xD
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)