SA-MP Forums Archive
Main bug. - 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: Main bug. (/showthread.php?tid=440345)



Main bug. - RyanPetersons - 29.05.2013

The problem is, the player doesn't gets moneys at being registered even I added give player money functions under onplayerspawn and if I give a player moneys by admincmd still he has 0 dafuq pls help


Re: Main bug. - Konewka - 29.05.2013

Show us some code.


Re: Main bug. - RyanPetersons - 29.05.2013

In the script there are many codes of give player money so shall I send you the full game mode for it?


Re: Main bug. - Konewka - 29.05.2013

Hell no. Show me the code where you expect the money to rise.


Re: Main bug. - RyanPetersons - 29.05.2013

Alright here it is
pawn Код:
PlayerInfo[playerid][Moneys] = 7500;
GivePlayerMoney(playerid,7500);



Re: Main bug. - Konewka - 29.05.2013

Well this tells me nothing really. Make a simple command that will add some money for you and test it if it works.


Re: Main bug. - IceBilizard - 29.05.2013

pawn Код:
PlayerInfo[playerid][Moneys] = 7500;
GivePlayerMoney(playerid,PlayerInfo[playerid][Moneys]);
or
pawn Код:
PlayerInfo[playerid][Moneys] = 7500;
SetPlayerMoney(playerid,PlayerInfo[playerid][Moneys]);



Re: Main bug. - Konewka - 29.05.2013

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
pawn Код:
SetPlayerMoney(playerid,PlayerInfo[playerid][Moneys]);
There is no such function.


Re: Main bug. - RyanPetersons - 29.05.2013

Fixed myself, thanks.