27.12.2009, 12:54
Hi!
but the compiler says: expression has no effect so whats wrong
Код:
something[playerid] + 20;
something[playerid] + 20;
new something[MAX_PLAYERS]; // as an example
Variable[playerid]++; // Increases the variable's value by one.
Variable[playerid]--; // Decreases the variable's value by one
Variable[playerid] += 28670; // Increases the variable's value by 28 670
Variable[playerid] -= 9737; // Decreases the variable's value by 9 737
stock randomEx(minnum = cellmin, maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;
/* i think this function is created by ******, but i'm not sure. */
Variable[playerid] += randomEx(25, 50);
Originally Posted by Don Correlli
pawn Код:
pawn Код:
|
new string[32];
format(string,sizeof(string),"%d - the variable",Variable[playerid]);
SendClientMessage(playerid,color,string);
new
myRandomVar;
myRandomVar = randomEx(25, 50);
Variable[playerid] += myRandomVar;
format(...);
SendClientMessage(...);