/locate command help.
#4

Quote:
Originally Posted by dusk
Посмотреть сообщение
Are you talking about the "SERVER: unknown command" error?

If so, the code probably crashes somewhere.... Try downloading "crashdetect" plugin to confirm this issue.

I believe this may be the reason:
pawn Код:
VehicleNames[GetVehicleModel(GetPlayerVehicleID(targetid))-400]);
You don't check if the player is in a vehicle before it. So if playerd "targetid" isn't in a vehicle this is a "Array out of bounds" error, because -400 isn't a valid index.
That is the exact error. Thanks for this, but do you know of a way to fix it?
Reply


Messages In This Thread
/locate command help. - by earlybird325 - 09.09.2014, 11:01
Re: /locate command help. - by dusk - 09.09.2014, 11:05
Re: /locate command help. - by DaniceMcHarley - 09.09.2014, 11:32
Re: /locate command help. - by earlybird325 - 10.09.2014, 02:24
Re: /locate command help. - by dusk - 10.09.2014, 10:37

Forum Jump:


Users browsing this thread: 3 Guest(s)