10.03.2010, 21:37
Hey guys! I'm posting there because i have a problem with my Car Destruction information. It is supposed to tell on the main chat:
'someone''s 'vehiclename' has been destroyed By 'someone' But, it says:
0 's 0 Has Been Destroyed By 255. I wonder What's wrong :\ I got no warnings for it on my script file.
Here are the lines:
//-------------------------------------------------------------------------
public OnVehicleDeath(vehicleid, killerid)
{
new string[40];
new playerid;
if(killerid == INVALID_PLAYER_ID) format(string, sizeof(string), " %d 's %d was destroyed.",playerid, GetPlayerVehicleName (playerid));
else format(string, sizeof(string), " %d 's %d Was Destroyed By %d", playerid, GetPlayerVehicleName(playerid), killerid);
SendClientMessageToAll(COLOR_BRIGHTRED, string);
return 1;
}
//---------------------------------------------------------------------------
What's wrong so the player's names and vehicles names don't show up?
Thanks :P
I attached a screen of my problem.
'someone''s 'vehiclename' has been destroyed By 'someone' But, it says:
0 's 0 Has Been Destroyed By 255. I wonder What's wrong :\ I got no warnings for it on my script file.
Here are the lines:
//-------------------------------------------------------------------------
public OnVehicleDeath(vehicleid, killerid)
{
new string[40];
new playerid;
if(killerid == INVALID_PLAYER_ID) format(string, sizeof(string), " %d 's %d was destroyed.",playerid, GetPlayerVehicleName (playerid));
else format(string, sizeof(string), " %d 's %d Was Destroyed By %d", playerid, GetPlayerVehicleName(playerid), killerid);
SendClientMessageToAll(COLOR_BRIGHTRED, string);
return 1;
}
//---------------------------------------------------------------------------
What's wrong so the player's names and vehicles names don't show up?
Thanks :P
I attached a screen of my problem.