/makeleader command
#2

pawn Код:
CMD:dajlidera(playerid, params[])
{
    new id,faction;
    if(sscanf(params,"ud",id,faction)) return SendClientMessage(playerid,colorred,"USAGE: /dajilidera [playerid] [factionid]");
    else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,colorre,"ERROR: Disconnected player!");
    format(file, 128, "/SRP/%s.ini", GetName(id));
    dini_IntSet(file, "Frakcja", faction);
    return 1;
}
sscanf is very useful while trying to script multiple parameters commands
Reply


Messages In This Thread
/makeleader command - by sekol - 01.10.2010, 11:24
Re: /makeleader command - by [XST]O_x - 01.10.2010, 12:17
Re: /makeleader command - by sekol - 01.10.2010, 12:24

Forum Jump:


Users browsing this thread: 2 Guest(s)