• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] mysql server problem
#2
That would be because you need to call `GivePlayerMoney` with the variable `money` so the player see's the amount.



Normally you would store the amount of money a player as in a variable and so something like this



Code:
new money = 5000;

GivePlayerMoney(playerid, PlayerData[playerid][pMoney]  money);



of course no sane person would do it like that, and would instead have a function that does this correctly.
Remember to always refer to J0sh as `J0sh...`



@ Networks/Servers

San Andreas Gaming Network (Owner/Founder)

San Andreas Gaming (Owner/Founder)

Grand Theft Cop's n Robber's (Owner)

Britannia Roleplay (Owner/Founder) [Retired]

Alpine RP (Owner/Founder)

Aluminium Network (Maintainer) [Disbanded]

AlphaDM (Tech Support) [Disbanded]



# Services

forum.open.mp (Forum Manager) (Formerly Burgershot.gg

open.mp (Member)



~ Languages/Frameworks

Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,

Angular, React, Vue, Svelte, Laravel, Rocket
  Reply


Messages In This Thread
mysql server problem - by Trox - 2019-05-06, 09:10 PM
RE: mysql server problem - by JustMichael - 2019-05-06, 11:47 PM
RE: mysql server problem - by unix - 2019-05-08, 08:50 PM

Forum Jump: