lil' help here
#1

hummm sscanf prob
pawn Код:
dcmd_lockserver(playerid,params[])
{
    new string[128],pName[MAX_PLAYER_NAME],password;
    if(PInfo[playerid][Level] < 5) return level(playerid,5);
    if(sscanf(params,"s",password)) return SendClientMessage(playerid,ORANGE,"USAGE: /lockserver [password]");
    GetPlayerName(playerid,pName,sizeof(pName));
    ServerInfo[ServerPass] = password;
    ServerInfo[ServerLocked] = 1;
    format(string,sizeof(string),"Server: %s has locked the server",pName);
    SendClientMessageToAll(YELLOW,string);
    return 1;
}
Reply


Messages In This Thread
lil' help here - by dark_clown - 23.11.2010, 14:38
Re: lil' help here - by Scenario - 23.11.2010, 14:41
Re: lil' help here - by dark_clown - 23.11.2010, 14:42
Re: lil' help here - by Zh3r0 - 23.11.2010, 14:44
Re: lil' help here - by dark_clown - 23.11.2010, 14:45

Forum Jump:


Users browsing this thread: 1 Guest(s)