Format help
#1

pawn Код:
CMD:mc(playerid,params[])
{
    new string[128], targetplayer;
    if(sscanf(params, "i", targetplayer)) return SendClientMessage(playerid, 0xFFFFFFFF, "[USAGE]: /mc [id]");
    else
    {
        format(string, 128, "Player Checks:");
        if (APlayerData[targetplayer][JobStarted] == true)
        {
            format(string, 128, "On a mission: {66FF00}Yes");
        }
        else
            format(string, 128, "On a mission: {FF0000}No");

        if(APlayerData[targetplayer][MafiaLoad] == true)
        {
            format(string, 128, "Maffia load: {66FF00}Yes");
        }
        else
            format(string, 128, "Maffia load: {FF0000}No");
       
        if (APlayerData[targetplayer][Overloaded] == true)
        {
            format(string, 128, "Overloaded: {66FF00}Yes");
        }
        else
            format(string, 128, "Overloaded: {FF0000}No");
       
        SendClientMessage(playerid, 0xFFFFFFFF, string);
    }
    return 1;
}
What it in-game shows is this:
Overloaded: No

How to fix that, I'm new in scripting so, an explanation is helpful
Reply


Messages In This Thread
Format help - by SomebodyAndMe - 23.02.2012, 18:01
Re: Format help - by Konstantinos - 23.02.2012, 18:08
Re: Format help - by SomebodyAndMe - 23.02.2012, 18:12
Re: Format help - by Konstantinos - 23.02.2012, 18:31
Re: Format help - by SomebodyAndMe - 23.02.2012, 18:33

Forum Jump:


Users browsing this thread: 2 Guest(s)