Loose intendation?
#2

Cause your code needs to be inline with the others.

PHP код:
YCMD:respawn(playerid,params[], help

    new 
id,string[256]; 
    if(
PlayerData[playerid][Admin] < 3) return SendClientMessage(playeridCOLOR_WHITEAdminOnly); 
    if(
sscanf(params"u"id)) return SendUsage(playerid,"/respawn <Name/Playerid>"); 
    if(
id == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_WHITE"{FFFFCC}Error: Player not connected."); 
    
SpawnPlayer(id); 
    
format(stringsizeof(string), "* You have respawned player %s"PlayerData[id][Name]); 
    
SendClientMessage(playeridCOLOR_YELLOW2string); 
    
format(stringsizeof(string), "* You have been respawned by Admin %s"PlayerData[playerid][Name]); 
    
SendClientMessage(idCOLOR_LIGHTREDstring); 
    
format(stringsizeof(string), "{F81414}AdmWarning:{FFFFFF} %s has respawned player %s !"PlayerData[playerid][Name], PlayerData[id][Name]); 
    
ABroadCast(COLOR_WHITE,string,1); 
    return 
1

Reply


Messages In This Thread
Loose intendation? - by PepsiCola23 - 29.01.2018, 10:38
Re: Loose intendation? - by ISmokezU - 29.01.2018, 10:42
Re: Loose intendation? - by PepsiCola23 - 29.01.2018, 11:05
Re: Loose intendation? - by ISmokezU - 29.01.2018, 11:13
Re: Loose intendation? - by denNorske - 29.01.2018, 11:24
Re: Loose intendation? - by PepsiCola23 - 29.01.2018, 11:28
Re: Loose intendation? - by Mugala - 29.01.2018, 11:40
Re: Loose intendation? - by PepsiCola23 - 29.01.2018, 11:47
Re: Loose intendation? - by Mugala - 29.01.2018, 12:42
Re: Loose intendation? - by PepsiCola23 - 29.01.2018, 12:43

Forum Jump:


Users browsing this thread: 2 Guest(s)