SA-MP Forums Archive
W*F IS WRONG? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: W*F IS WRONG? (/showthread.php?tid=257011)



W*F IS WRONG? - Cjgogo - 23.05.2011

THIS IS SO STRANGE(OMG):

pawn Код:
SetPlayerMoney(playerid,dini_Int(String,"Money"));
undefined SetPlayerMoney (/facepalm,I even have the save system at OnPlayerDisconnect so WTF?( yesterday was working)


Re: W*F IS WRONG? - Toreno - 23.05.2011

What are your errors?


Re: W*F IS WRONG? - [NoV]LaZ - 23.05.2011

It's GivePlayerMoney.


Re: W*F IS WRONG? - xalith - 23.05.2011

Quote:
Originally Posted by [NoV]LaZ
Посмотреть сообщение
It's GivePlayerMoney.
shouldn't they both have the same effect?


Re: W*F IS WRONG? - Ricop522 - 23.05.2011

GivePlayerMoney(playerid, dini_Int(String,"Money"));


Re: W*F IS WRONG? - Mean - 23.05.2011

Or, you can make your own SetPlayerMoney stock:
pawn Код:
stock SetPlayerMoney( playerid, money )
{
    ResetPlayerMoney( playerid );
    GivePlayerMoney( playerid, money );
}