error 008: must be a constant expression; assumed zero
#1

Код:
new RandomSkins[10] = {
{7},{29},{59},{60},{101},
{170},{185},{188},{250},{240}
};
Is causing me:
Quote:

X:\gamemode.pwn(2) : error 008: must be a constant expression; assumed zero

Reply
#2

Quote:
Originally Posted by Hoborific
Посмотреть сообщение
I compiled it fine, where are you executing RandomSkins?
Thanks for replying, i did this:

Код:
SetPlayerSkin(playerid, RandomSkins[random(sizeof(RandomSkins))]);
Reply
#3

FOUND:

I had to add another array onto it: [1]
I never understood why..
Reply
#4

Edit: nevermind guy above me has a better answer i guess
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)