[HELP] Spawn colours
#7

i got 4 errors namely:

Quote:

C:\Users\Edward\Desktop\sa-mp legendary planet\pawno\lpgamemode2.pwn(1326) : error 017: undefined symbol "pClass"
C:\Users\Edward\Desktop\sa-mp legendary planet\pawno\lpgamemode2.pwn(1326) : error 029: invalid expression, assumed zero
C:\Users\Edward\Desktop\sa-mp legendary planet\pawno\lpgamemode2.pwn(1326) : error 029: invalid expression, assumed zero
C:\Users\Edward\Desktop\sa-mp legendary planet\pawno\lpgamemode2.pwn(1326) : fatal error 107: too many error messages on one line

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


4 Errors.

this is my pwn code:

Quote:

public OnPlayerSpawn(playerid)
{
// First we need to determine what classid a player spawned with
switch(pClass[playerid])
{
case 0:
{
// If the player's class is 0 then set it to Orange
SetPlayerColor(playerid, 0x800080AA); // purple
}
case 1:
{
// If the player's class is 1 then set it to Red
SetPlayerColor(playerid, 0xFF9900AA); // orange
}
case 2:
{
// If the player's class is 0 then set it to Orange
SetPlayerColor(playerid, 0xAA3333AA); // red


}
return 1;
}

Reply


Messages In This Thread
[HELP] Spawn colours - by mickos - 02.06.2012, 10:38
Re: [HELP] Spawn colours - by MadeMan - 02.06.2012, 10:47
Re: [HELP] Spawn colours - by mickos - 02.06.2012, 10:51
Re: [HELP] Spawn colours - by Niko_boy - 02.06.2012, 10:54
Re: [HELP] Spawn colours - by mickos - 02.06.2012, 10:55
Re: [HELP] Spawn colours - by Niko_boy - 02.06.2012, 10:57
Re: [HELP] Spawn colours - by mickos - 02.06.2012, 11:04
Re: [HELP] Spawn colours - by Niko_boy - 02.06.2012, 11:10
Re: [HELP] Spawn colours - by mickos - 02.06.2012, 11:12

Forum Jump:


Users browsing this thread: 1 Guest(s)