Need help with spawn vehicle command!
#1

Script:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/car", cmdtext, true, 10) == 0)
{
new tmp[128];
tmp = strtok(cmdtext, idx);
new Float:posx, Float:posy, Float:posz;
GetPlayerPos(playerid, posx, posy, posz);
CreateVehicle(strval(tmp), posx, posy, posz, 0, random(126), random(126), 600);
return 1;
}
return 0;
}

Error:

....pwn(90) : error 017: undefined symbol "idx"
Reply


Messages In This Thread
Need help with spawn vehicle command! - by Maky184 - 17.10.2017, 15:53
Re: Need help with spawn vehicle command! - by StrikerZ - 17.10.2017, 15:56
Re: Need help with spawn vehicle command! - by Escobabe - 17.10.2017, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)