string problem
#3

Try This
PHP код:
new playerid,reason[64];
        if (
sscanf(params"dz"playeridreason))
        {
            return 
1;
        }
        if (
IsPlayerConnected(playerid))
        {
            new 
msg[128],name[MAX_PLAYER_NAME];
            
GetPlayerName(playeridnamesizeof(name));
            
format(msgsizeof(msg), "04*** %s has been unfrozen by %s on IRC."nameuser);
            
IRC_GroupSay(gGroupIDIRC_CHANNELmsg);
            
format(msgsizeof(msg), "* Admin %s on IRC has unfrozen %s ",username);
            
SendClientMessageToAll(0xAA3333AAmsg);
            
TogglePlayerControllable(playerid1);
        }
    }
    return 
1;

Or This
PHP код:
IRCCMD:unfreeze(botidchannel[], user[], host[], params[])
{
    if (
IRC_IsOp(botidchanneluser))
    {
        new 
playerid,reason[64];
        if (
sscanf(params"dz"playeridreason))
        {
            return 
1;
        }
        if (
IsPlayerConnected(playerid))
        {
            new 
msg[128],name[MAX_PLAYER_NAME];
            
GetPlayerName(playeridnamesizeof(name));
            
format(msgsizeof(msg), "04*** %s has been unfrozen by %s on IRC."nameuser);
            
IRC_GroupSay(gGroupIDIRC_CHANNELmsg);
            
format(msgsizeof(msg), "* Admin %s on IRC has unfrozen %s ",username);
            
SendClientMessageToAll(0xAA3333AAmsg);
            
TogglePlayerControllable(playerid1);
        }
    }
    return 
1;

Reply


Messages In This Thread
string problem - by JXF - 20.06.2016, 17:35
Re: string problem - by CarRamper - 20.06.2016, 17:38
Re: string problem - by CarRamper - 20.06.2016, 17:40
Re: string problem - by Stinged - 20.06.2016, 17:46
Re: string problem - by JXF - 20.06.2016, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)