Error when declaring
#1

I can't declare a variable with a random value as a global one?
Is this really true,or i'm doing something wrong?
Код:
new raRadioStations = random(5);
Reply
#2

Yes, this is really true, you can't declare global variable with return from function. Simply assign the random value in main or OnGameModeInit.
Reply
#3

Well.. you have to create the global var

pawn Код:
new raRadioStations;
;

then in ongamemodeinit you can random it


EDIT: PWned by Misiur
Reply
#4

Okay it's not a problem that i can't declare it the way i did for me,just asking.
Thanks
Reply


Forum Jump:


Users browsing this thread: