[Help] Fixing errors
#2

you cannot make 2 "else" with one "if"

so here you go:

pawn Код:
CMD:cionrde(playerid, params[])
{
    if(CiorditTimp[playerid] == 0)
    {
        new string[128], nume1[24], nume2[24], ID, victima;
        new banili = random(1000) + 500;
       
        GetPlayerName(playerid, nume1, sizeof(nume1));
        format(string, 128, "%s ti-a ciordit {228B22}${FFFFFF}%d din buzunar!", nume1, banili);
        SCM(ID, -1, string);
        format(string, 128, "I-ai ciordit lui %s {228B22}${FFFFFF}%d din buzunar!", nume2, banili);
        SCM(playerid, -1, string);
        SendClientMessage(playerid, COLOR_WHITE, string);
        GivePlayerMoney(playerid, banili);
        GivePlayerMoney(victima, -banili);
        CiorditTimp[playerid] = 1;
        SetTimerEx("ciordealatimp", 120000, false, "i", playerid);
        return 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "Nu e nimeni langa tine!");
    }
    return 1;
}
Reply


Messages In This Thread
[Help] Fixing errors - by KingPersona - 01.06.2014, 19:10
Re: [Help] Fixing errors - by AnonScripter - 01.06.2014, 19:30
Re: [Help] Fixing errors - by KingPersona - 01.06.2014, 20:01
Re: [Help] Fixing errors - by KingPersona - 01.06.2014, 20:30
Re: [Help] Fixing errors - by Eth - 01.06.2014, 20:34
Re: [Help] Fixing errors - by KingPersona - 02.06.2014, 10:14
Re: [Help] Fixing errors - by Eth - 02.06.2014, 11:05
Re: [Help] Fixing errors - by KingPersona - 02.06.2014, 11:18
Re: [Help] Fixing errors - by Eth - 02.06.2014, 11:20
Re: [Help] Fixing errors - by KingPersona - 02.06.2014, 11:34

Forum Jump:


Users browsing this thread: 1 Guest(s)