help with error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help with error (
/showthread.php?tid=110679)
help with error -
Saurik - 28.11.2009
well i keep getting these 2 errors
error 033: array must be indexed (variable "tmp")
error 033: array must be indexed (variable "tmp")
heres the code
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256], idx;new tmp[256];new string[128];
new vehicleid = GetPlayerVehicleID(playerid);
cmd = strtok(cmdtext, idx)
tmp = strtok(cmdtext, idx)
also it disables some locked cars. for example, only cops can enter a lspd car. now anyone can!