script help
#1

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    new 
string[256];
    new 
playercash;
    new 
victimteam;
    new 
Float:px,Float:py,Float:pz;
    new 
killerteam;
    new 
sName[MAX_PLAYER_NAME];
    
GetPlayerName(killerid,sName,MAX_PLAYER_NAME);
    if(
sName[killerid] == "")
    {
    }
    else
    {
        
format(string,sizeof(string),"{00ccff}» {ffffff}You have been killed by {ff6347}%s{ffffff}.",sName);
    }
    
SendClientMessage(playerid,0xFFFFFFAA,string); 
if i put there if(sName[killerid] == "") it gives me an error ...

what code must be there when sName = "" to do nothing ?
Reply


Messages In This Thread
script help - by CaTaLinU - 25.08.2012, 09:14
Re: script help - by Cjgogo - 25.08.2012, 09:17
Re: script help - by CaTaLinU - 25.08.2012, 09:32
Re: script help - by Riddick94 - 25.08.2012, 09:42
Re: script help - by ikkentim - 25.08.2012, 11:35
Re: script help - by clarencecuzz - 25.08.2012, 11:48
Re: script help - by shitbird - 25.08.2012, 11:49

Forum Jump:


Users browsing this thread: 1 Guest(s)