Quote:
Originally Posted by aRoach
pawn Код:
forward robbing( playerid ); public robbing( playerid ) { new succed = random( 100 ); if( succeed >= 30 ) { new str[ 128 ]; new moneyer = random( 10000 ); GivePlayerCash( playerid, moneyer ); format( str, 128, "You succesfully robbed the bank and got $%d!", moneyer ); SCM( playerid, COLOR_GREEN, str ); SetTimerEx( "canrobb", 1200000, false, "i", playerid ); } else { SCM( playerid, COLOR_GREEN, "You failed at robbing the bank!" ); SetTimerEx( "canrobb", 1200000, false, "i", playerid ); } return 1; }
|
Even if that will work, what is the reason that my RandomEx wont work here?
I don't like to do something without knowing why.