17.10.2017, 15:53
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"
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"