[HELP] Error 017: undefined symbol "PlayerRainbowColors"
#1

I Got some Errors here! please help me!
Errors :
Код:
eXs.pwn(69412) : error 017: undefined symbol "PlayerRainbowColors"
eXs.pwn(69412) : error 029: invalid expression, assumed zero
eXs.pwn(69412) : warning 215: expression has no effect
eXs.pwn(69413) : error 017: undefined symbol "PlayerRainbowColors"
eXs.pwn(69413) : warning 215: expression has no effect
eXs.pwn(69413) : error 001: expected token: ";", but found "]"
eXs.pwn(69413) : error 029: invalid expression, assumed zero
eXs.pwn(69413) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Codes :
pawn Код:
forward NameFlash(playerid);
public NameFlash(playerid)
{
    new rand = random(sizeof(PlayerRainbowColors));
    SetPlayerColor(playerid, PlayerRainbowColors[rand]);
}
Reply
#2

SetPlayerColor(playerid, PlayerRainbowColors[rand]);

That is wrong, make sure it's real color like COLOR_WHITE
Reply
#3

then wht should i need to do .. ?
wht should i change in it?
Reply
#4

Try :
pawn Код:
SetPlayerColor(playerid, PlayerRainbowColors[rand][0], PlayerRainbowColors[rand][1], PlayerRainbowColors[rand][2]); //And keep adding more if you have more!
Reply
#5

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
Try :
pawn Код:
SetPlayerColor(playerid, PlayerRainbowColors[rand][0], PlayerRainbowColors[rand][1], PlayerRainbowColors[rand][2]); //And keep adding more if you have more!
still same error!
Reply
#6

@Stuun & @Ultrascripter: Are you guys serious?!

@NGEN: Show us the PlayerRainbowColors-array. (I don't think you actually have it...)
Reply
#7

Are we serious you code 7 years aren't you?!
Reply
#8

No there is no array!
Reply
#9

The amount of misinformation in this thread is astonishing.

Quote:
Originally Posted by Stuun23
Посмотреть сообщение
SetPlayerColor(playerid, PlayerRainbowColors[rand]);

That is wrong, make sure it's real color like COLOR_WHITE
pawn Код:
new color = 16777215;
SetPlayerColor(playerid, color);
According to you, that isn't a real color.

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
Try :
pawn Код:
SetPlayerColor(playerid, PlayerRainbowColors[rand][0], PlayerRainbowColors[rand][1], PlayerRainbowColors[rand][2]); //And keep adding more if you have more!
Whenever I see a post of yours it nearly always contains wrong information and oftentimes the code won't even compile. Might I suggest doing a bit more research? You're just making their problems worse.

@OP: show me where you have "new PlayerRainbowColors". If you don't have it you will need to find it. Probably in the same script from which you took the function itself.
Reply
#10

The error is pretty self explanatory don't you think?

"undefined symbol" means the symbol dosen't exist, undefined <-> defined see where i'm going with this?

Whereever you've copied the script from, copy PlayerRainbowColors aswell and it should work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)