#1

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"));         }
Reply
#2

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(playeridmoney) {
     
ResetPlayerMoney(playerid);
     
GivePlayerMoney(playeridmoney);

Reply
#3

where do i have to put that?
Reply
#4

Quote:
Originally Posted by Trollerz
Посмотреть сообщение
where do i have to put that?
Add this in your gamemode:
PHP код:
stock SetPlayerMoney(playeridmoney) {
     
ResetPlayerMoney(playerid);
     
GivePlayerMoney(playeridmoney);

Reply
#5

Above any of your SetPlayerMoney functions.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)