#2

to fix the loose indentation

and from FactSkins1 - 7 which is unused symbol just disable it, you have to put " // to disable those unused symbol bruv.
i hope it helped
PHP код:
CMD:advertise(playeridparams[]) 

    new 
string[128], name[MAX_PLAYER_NAME+1]; 
    if(
sscanf(params"s[128]"params)) return SendClientMessage(playeridCOLOR_CORRECTION"USAGE: (/ad)vertise [Advert Text]"); 
    if(
PlayerInfo[playerid][pAdmin] < 1
    { 
        if(
PlayerInfo[playerid][pLevel] <= 1) return SendClientMessage(playeridCOLOR_CORRECTION"You must be level 2 to place an advertise!"); 
        if(
ServerAdvert gettime()) 
        { 
            
format(stringsizeof(string), "You must wait %d to put another ad"ServerAdvert gettime()); 
            return 
SendClientMessage(playerid, -1string); 
        } 
        else 
        { 
            
GetPlayerName(playeridnamesizeof(name)); 
            
ServerAdvert gettime()+120;// 120 seconds 
            
format(stringsizeof(string), "Advertisement: %s Contact: %s Ph: %d"paramsnamePlayerInfo[playerid
            [
Phone]); 
            
SendClientMessageToAll(COLOR_ADVERTISEstring); 
            
GivePlayerMoney(playerid, -1000); 
        } 
    } 
    else 
    { 
            
GetPlayerName(playeridnamesizeof(name)); 
            
ServerAdvert gettime()+120;// 120 seconds 
            
format(stringsizeof(string), "Advertisement: %s Contact: %s Ph: %d"paramsnamePlayerInfo[playerid
            [
Phone]); 
            
SendClientMessageToAll(COLOR_ADVERTISEstring); 
            
GivePlayerMoney(playerid, -1000); 
    } 
    return 
1

Reply


Messages In This Thread
/ad - by Jaua10 - 16.04.2018, 05:41
Re: /ad - by TitoRayne - 16.04.2018, 09:01
Re: /ad - by ProScripter - 16.04.2018, 09:45

Forum Jump:


Users browsing this thread: 1 Guest(s)