Serverside money problem
#1

Код:
	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
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)