Still error
#4

Код:
YCMD:kupizlato(playerid, params[], help) 
{ 
    #pragma unused help 
    if(IsPlayerInRangeOfPoint(playerid, 1.0, 1696.5371,-1183.6985,23.8899)) 
    { 
        new ammount;
        if(sscanf(params, "i", ammount)) 
        { 
            SCM(playerid,-1,"ES:RPG Pomoc | "SPLAVA"/kupizlato [Kolicina]"); 
            SCM(playerid,-1,"ES:RPG Pomoc | "SPLAVA"Cijena grama je 300"); 
            return 1; 
        } 
        else 
        {
            new string[128], cash = ammount * 300;
            PlayerInfo[playerid][pZlato] += ammount; 
            GivePlayerMoney(playerid, - cash); 
            format(string, sizeof(string), ""SPLAVA"Kupili ste "ZUTA"%d g zlata za "ZELENA"%d$", ammount, cash); 
            SCM(playerid, -1, string); 
            return 1; 
        } 
    } 
    else 
    { 
        SCM(playerid, -1, "[ES:RPG] "CRVENA"Niste na mjestu kupovine zlata!"); 
        return 1; 
    } 
}
Reply


Messages In This Thread
Still error - by Micko123 - 14.06.2016, 13:53
Re: Still error - by Stinged - 14.06.2016, 14:05
Re: Still error - by Micko123 - 14.06.2016, 14:09
Re: Still error - by Stinged - 14.06.2016, 14:20
Re: Still error - by Micko123 - 14.06.2016, 14:22
Re: Still error - by Stinged - 14.06.2016, 14:23
Re: Still error - by Micko123 - 14.06.2016, 14:25

Forum Jump:


Users browsing this thread: 3 Guest(s)