How to divide, and use it somewhere else?
#1

title says it,

new result[64];
RACE_MONEY/20 = result;

how could i divide it by 20 and get the result without any errors cause I didn't do dividing in my script and now I'm just wondering how to do it?
Reply
#2

First of all, your using the wrong data type. It should be an integer instead of a string. Second how did you think


pawn Код:
RACE_MONEY/20 = result;
was logical at all lol. Its like your saying: 1 = 0. Doesnt Make sense. Here's how u need to do it.

pawn Код:
new result = RACE_MONEY/20;
Reply
#3

ok, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)