16.07.2009, 08:31
its not really in the code... its a problem with a custom function. Here's the stock for the function:
At first I tried having it in a .INC, but that didn't work, so I put it directly at the end of the filterscript, and that didn't help. So I finally tried both at the same time, and that's how i got that error message. That being said, the program knows it is there, but it is lying to me and telling me it isn't there.
Код:
stock RespawnVehicle(vehicleid) { new playerscount; for(new i = 0; i < GetMaxPlayers(); i++) { if (IsPlayerInVehicle(i,vehicleid)) { playerscount++; RemovePlayerFromVehicle(playerid); SetVehicleLock(vehicleid,ON,999); rv[vehicleid] = SetTimerEx("ResVeh",3000,0,"d",vehicleid); } } if (playerscount == 0) SetVehicleToRespawn(vehicleid); }
![angry](images/smilies/mad.gif)