Still error
#1

Sry if this is multi posting but i really need to fix this
PHP код:
YCMD:kupizlato(playeridparams[], help)
{
    
#pragma unused help
    
if(IsPlayerInRangeOfPoint(playerid1.01696.5371,-1183.6985,23.8899))
    {
        new 
string[128], ammountcash ammount 300;
        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
        {
            
PlayerInfo[playerid][pZlato] += ammount;
            
GivePlayerMoney(playerid, - cash);
            
format(stringsizeof(string), ""SPLAVA"Kupili ste "ZUTA"%d g zlata za "ZELENA"%d$"ammountcash);
            
SCM(playerid, -1string);
            return 
1;
        }
    }
    else
    {
        
SCM(playerid, -1"[ES:RPG] "CRVENA"Niste na mjestu kupovine zlata!");
        return 
1;
    }

Code works fine with one error. It give me ammount of gold i want but it says that i bough it for 0$. How is that possible??
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: 1 Guest(s)