#1

How would I do something like:

PlayerInfo[playerid][pLevel] * number, I know it's possible but am not sure how I would do that though.

Yes, i've searched SA-MP forums and ******, no trace (or am searching it with the wrong keywords).
Reply
#2

PlayerInfo[playerid][pLevel] * number is PlayerInfo[playerid][pLevel] * number, you should explain what exactly is the problem with this.
Also this is a scripting question, and doesnt belong here in the discussion section.
Reply
#3

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
PlayerInfo[playerid][pLevel] * number is PlayerInfo[playerid][pLevel] * number, you should explain what exactly is the problem with this.
Also this is a scripting question, and doesnt belong here in the discussion section.
Ah, I was just asking if I could do something like, Using PlayerInfo[playerid][pLevel] and then using * to times it by a number, is it possible using that PlayerInfo tag and Sorry for posting here, just thought it can be discussed as I wanted to make it so, if you have a social security number it'll give a player like $200 and if the players level higher, it'll times the level by $200, is that a good idea...
Reply
#4

afaik PlayerInfo is just a normal cell/variable (part of your script). No matter what the tag is, variables are stored as integers, and so you can multiply them as you like. Problems only occur with the Float tag as this refers to a different internal representation of floating point numbers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)