Automatic Vehicle Destroy
#1

Hi, I decided to do "Automatic Vehicle Destoy" script for my sever.
I write this :
Код:
new DestroVeh[MAX_PLAYERS];

public OnPlayerExitVehicle(playerid, vehicleid)
{
	if (gangwar[playerid] == 0) {
	DestroVeh[playerid] = vehicleid;
	SetTimer("DesVeh", 10000, 0);
	}
	return 1;
}

forward DesVeh();
public DesVeh()
{
	DestroyVehicle(DestroVeh[playerid]);
	return 1;
}
But I have this error :
Код:
D:\Program Files (x86)\Rockstar Games\GTA San Andreas\filterscripts\BamAdmin.pwn(214) : error 017: undefined symbol "playerid"
I know what is this, but, how can you I fix it please ?
Reply
#2

pawn Код:
SetTimerEx("DesVeh", 10000, 0, "i", playerid);
pawn Код:
forward DesVeh(playerid);
public DesVeh(playerid)
{
    DestroyVehicle(DestroVeh[playerid]);
    return 1;
}
Reply
#3

Thanks )
Reply
#4

glad i could help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)