This is hapening..
#1

PHP код:
YCMD:prodajzlato(playeridparams[], help)
{
    
#pragma unused help
    
if(IsPlayerInRangeOfPoint(playerid1.01689.6005,-1183.4509,23.8809))
    {
        new 
ammount;
        if(
sscanf(params"i"ammount))
        {
            
SCM(playerid,-1,"ES:RPG Pomoc | "SPLAVA"/prodajzlato [Kolicina]");
            
SCM(playerid,-1,"ES:RPG Pomoc | "SPLAVA"Prodajna cijena grama zlata je 800");
            return 
1;
        }
        else
        {
            new 
string[128], cash ammount 800;
            
PlayerInfo[playerid][pZlato] -= ammount;
            
GivePlayerMoney(playerid, + cash);   //this is the line
            
format(stringsizeof(string), ""SPLAVA"Prodali 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;
    }

I get these errors

Код:
C:\Users\Admin\Desktop\Extreme School\Extreme School RPG\gamemodes\ESRP.pwn(17448) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\Extreme School\Extreme School RPG\gamemodes\ESRP.pwn(17448) : warning 215: expression has no effect
C:\Users\Admin\Desktop\Extreme School\Extreme School RPG\gamemodes\ESRP.pwn(17448) : error 001: expected token: ";", but found ")"
C:\Users\Admin\Desktop\Extreme School\Extreme School RPG\gamemodes\ESRP.pwn(17448) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\Extreme School\Extreme School RPG\gamemodes\ESRP.pwn(17448) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

show line 17448
Reply
#3

Here you go
PHP код:
GivePlayerMoney(playerid, + cash);   //this is the line 
Read first
Reply
#4

You can only using - in GivePlayerMoney.
Change it to this:
Код:
GivePlayerMoney(playerid, cash);
And you should stop making new threads that are about the same command.
You can just post on the old thread that something's not working.
Reply
#5

well old thread was about /buygold this one is about /sellgold

And by the way thank you for help. it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)