Store a data value
#1

Hey i got a small problem. The problem is this:
pawn Код:
APlayerData[playerid][Money] = GetPlayerMoney(playerid);
My question is Will it store it in the APLayerData value or would it try to put it into GetPlayermoney?
Reply
#2

How will you use it?
Reply
#3

This piece of code will store the return value of GetPlayerMoney (which returns an integer based on the money the specified playerid has in-game) in the variable APlayerData in the 2nd dimension in the cell you specified using the enum "Money".
Reply
#4

WEll so why i get an error if i turn it around?
Reply
#5

Because assignments are always right-to-left.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)