HELP - 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: HELP (
/showthread.php?tid=586619)
HELP -
Trollerz - 23.08.2015
Error
error 017: undefined symbol "SetPlayerMoney"
Код HTML:
Code:
{
dini_Create(file);
dini_IntSet(file, "Score", 0);
dini_IntSet(file, "Money", 0);
SetPlayerScore(playerid, dini_Int(file, "Score")); //<<Main error line
SetPlayerMoney(playerid, dini_Int(file, "Money"));
}
Re: HELP -
Logofero - 23.08.2015
Quote:
Originally Posted by Trollerz
Error
error 017: undefined symbol "SetPlayerMoney"
Код HTML:
Code: {
dini_Create(file);
dini_IntSet(file, "Score", 0);
dini_IntSet(file, "Money", 0);
SetPlayerScore(playerid, dini_Int(file, "Score")); //<<Main error line
SetPlayerMoney(playerid, dini_Int(file, "Money"));
}
|
This function is not a standard a_samp.inc it necessary to write to
PHP код:
stock SetPlayerMoney(playerid, money) {
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, money);
}
Re: HELP -
Trollerz - 23.08.2015
where do i have to put that?
Re: HELP -
Logofero - 23.08.2015
Quote:
Originally Posted by Trollerz
where do i have to put that?
|
Add this in your gamemode:
PHP код:
stock SetPlayerMoney(playerid, money) {
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, money);
}
Re: HELP -
Michael B - 23.08.2015
Above any of your
SetPlayerMoney functions.