Some errors needed help with
#16

Quote:
Originally Posted by CAR
Посмотреть сообщение
OnPlayerDeath with reason (and Splat):
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new string[256];
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    if(killerid == INVALID_PLAYER_ID) { reason = "Splat"; }
    else { GetWeaponName(reason, weap, sizeof(weap)); }
    format(string, sizeof(string),"%s has Died (reason)",playername, reason);
    SendClientMessageToAll(0x00FF32FF,string);
    return 1;
}
OnPlayerEnterVehicle with vehicleid
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new string[128];
    format(string, sizeof(string), "You have entered a Vehicle (%d)", vehicleid);
    SendClientMessage(playerid, COLOR_INTERFACE, string);
    return 1;
}
moO! they both failed.. The vehicles one just straight up gave errors about undefined sysmbols "vehiclename" or something like that and same with the death message..!>
Reply


Messages In This Thread
Some errors needed help with - by willsuckformoney - 09.07.2010, 08:16
Re: Some errors needed help with - by Hiddos - 09.07.2010, 08:23
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 08:36
Re: Some errors needed help with - by CAR - 09.07.2010, 08:37
Re: Some errors needed help with - by Hiddos - 09.07.2010, 08:45
Re: Some errors needed help with - by Miikkel - 09.07.2010, 09:08
Re: Some errors needed help with - by Grim_ - 09.07.2010, 09:10
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 09:11
Re: Some errors needed help with - by Grim_ - 09.07.2010, 09:13
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 09:17
Re: Some errors needed help with - by Grim_ - 09.07.2010, 09:18
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 09:23
Re: Some errors needed help with - by Grim_ - 09.07.2010, 09:29
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 09:41
Re: Some errors needed help with - by CAR - 09.07.2010, 10:10
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 10:39
Re: Some errors needed help with - by CAR - 09.07.2010, 11:00
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 11:05
Re: Some errors needed help with - by Betamaster - 09.07.2010, 11:09
Re: Some errors needed help with - by willsuckformoney - 09.07.2010, 11:14

Forum Jump:


Users browsing this thread: 6 Guest(s)