05.10.2014, 14:02
Код:
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]; }
Код:
warning 202: number of arguments does not match definition