Errors with public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
#1

Code:

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	new string[128];
	new vehicle[24];
	GetVehicleName(vehicleid, vehicle, sizeof(vehicle));
	for(new i=0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			if(Spectate[i] != 255)
			{
    			PlayerSpectateVehicle(i,vehicleid);
			}
		}
	}
Errors:
error 017: undefined symbol "Spectate"
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
Reply
#2

Can you show me what lines errors are in?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)