15.08.2011, 02:40
if players use /robbank how can i make they get random money around 10000-20000
GivePlayerMoney(playerid, 10000+rand(10000)); |
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\stunt.pwn(5020) : error 012: invalid function call, not a valid address
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\stunt.pwn(5020) : warning 215: expression has no effect
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\stunt.pwn(5020) : error 001: expected token: ";", but found ")"
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\stunt.pwn(5020) : error 029: invalid expression, assumed zero
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\stunt.pwn(5020) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
new randmoney = random(10000) - 20000;
GivePlayerMoney(playerid, randmoney);
new robmoney = random(20000);
GivePlayerMoney(playerid, robmoney);
new robmoney = 10000 + random(20000);
GivePlayerMoney(playerid, robmoney);
GivePlayerMoney(playerid,10000+random(10000)); 10000-20000