Another pawno bug
#8

Quote:
Originally Posted by Kinto
use this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[100], i;
cmd = strtok(cmdtext, i);
new pos[3][50];
if(!strcmp(cmd, "/XYZ", true))
{
for(new a; a<3; a++) pos[a] = strtok(cmdtext, i);
if(!strlen(pos[2])) return true;
return SetPlayerPos(playerid, floatstr(pos[0]), floatstr(pos[1]), floatstr(pos[2]));
}
if(!strcmp(cmd, "/XYZ_LOL", true))
{
for(new a; a<3; a++) pos[a] = strtok(cmdtext, i);
if(!strlen(pos[2])) return true;
return SetPlayerPos(playerid, floatstr(pos[0]), floatstr(pos[1]), floatstr(pos[2]));
}
return false;
}
You probably missed the point. I am not stupid. I was only reporting a bug.
Reply


Messages In This Thread
Another pawno bug - by ¤Adas¤ - 31.03.2010, 15:48
Re: Another pawno bug - by Finn - 31.03.2010, 16:40
Re: Another pawno bug - by ¤Adas¤ - 31.03.2010, 18:16
Re: Another pawno bug - by Westie - 31.03.2010, 18:16
Re: Another pawno bug - by ¤Adas¤ - 31.03.2010, 18:17
Re: Another pawno bug - by Joe Staff - 31.03.2010, 18:19
Re: Another pawno bug - by Mr L - 31.03.2010, 18:34
Re: Another pawno bug - by ¤Adas¤ - 31.03.2010, 18:43
Re: Another pawno bug - by RSX - 31.03.2010, 20:45

Forum Jump:


Users browsing this thread: 1 Guest(s)