SA-MP Forums Archive
Serverside money problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Serverside money problem (/showthread.php?tid=540532)



Serverside money problem - TiXz0r - 05.10.2014

Код:
	if(dialogid == WITHDRAWMONEYBANK)
    {
	    if(!response) return 1;
	    if(response)
	    {
		    new valut;
		    valut = strval(inputtext);
		    if(valut < 1) return SCM(playerid,COLOR_GREEN,"[RADNIK]: "COL_WHITE"Ne mozete ici ispod 1!");
		    if(PlayerInfo[playerid][pBankCash] < valut) return SCMF(playerid,COLOR_GREEN,"[RADNIK]: "COL_WHITE"Nemate "COL_GREEN"%d$ "COL_WHITE", u banci imate  "COL_GREEN"%d$"COL_WHITE"!",valut,PlayerInfo[playerid][pBankCash]);
		    PlayerInfo[playerid][pBankCash] -= valut;
---THIS LINE		    GetPlayerCash(playerid, valut);
		    SavePlayer(playerid);
    		SCMF(playerid, COLOR_GREEN,"[RADNIK]: "COL_WHITE"Podigli ste sa bankovnog racuna "COL_GREEN"%d$"COL_WHITE", Novo stanje na racunu vam je "COL_GREEN"%d$"COL_WHITE"!",valut,PlayerInfo[playerid][pBankCash]);
		}
    }
Код:
stock GetPlayerCash(playerid)
{
    return Cash[playerid];
}
and a got this error:
Код:
warning 202: number of arguments does not match definition
where is problem? i cant find


Re: Serverside money problem - Eth - 05.10.2014

this
pawn Код:
GetPlayerCash(playerid, valut);
should be
pawn Код:
GetPlayerCash(playerid);