undefined playerid.
#1

help:
Код:
public OnVehicleDeath(vehicleid, killerid)
{
	if(vehicleid == tvid[playerid])
	    {
	        DestroyVehicle(tvid[playerid]);
			for(new i=0;i<MAX_PLAYERS;i++)
			    {
			    new name[MAX_PLAYER_NAME];
				if(GetPlayerName(i, name, sizeof(name)) == owner[vid])
				    {
				    SendClientMessage(i, red, "Your vehicle has been destroyed.");
					}
				}
		}
	return 1;
}
Reply


Messages In This Thread
undefined playerid. - by THE_KNOWN - 30.01.2011, 04:26
Re: undefined playerid. - by Antonio [G-RP] - 30.01.2011, 04:30
Re: undefined playerid. - by THE_KNOWN - 30.01.2011, 05:03

Forum Jump:


Users browsing this thread: 1 Guest(s)