Jump to content
  • 0

Enum problem


dariumare

Question

am creat un enum si imi da o gramad de erori:

enum pKnow
{
	Boxing,
	Kungfu,
	Kneehead,
	Grabkick,
	Elbow,
};
new PlayerKnow[MAX_PLAYERS][pKnow];
si primesc
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(79) : warning 219: local variable "ID" shadows a variable at a preceding level
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(83) : error 022: must be lvalue (non-constant)
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(84) : warning 213: tag mismatch
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(84) : warning 206: redundant test: constant expression is non-zero
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(79) : warning 203: symbol is never used: "Kungfu"
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(101) : warning 219: local variable "Kneehead" shadows a variable at a preceding level
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(105) : error 022: must be lvalue (non-constant)
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(106) : warning 213: tag mismatch
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(106) : warning 205: redundant code: constant expression is zero
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(101) : warning 203: symbol is never used: "Kneehead"
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(123) : warning 219: local variable "Grabkick" shadows a variable at a preceding level
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(127) : error 022: must be lvalue (non-constant)
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(128) : warning 213: tag mismatch
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(128) : warning 205: redundant code: constant expression is zero
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(123) : warning 203: symbol is never used: "Grabkick"
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(145) : warning 219: local variable "Elbow" shadows a variable at a preceding level
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(149) : error 022: must be lvalue (non-constant)
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(150) : warning 213: tag mismatch
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(150) : warning 205: redundant code: constant expression is zero
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(145) : warning 203: symbol is never used: "Elbow"
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(177) : error 017: undefined symbol "Result"
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(179) : error 017: undefined symbol "Result"
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(181) : error 017: undefined symbol "Result"
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(183) : error 017: undefined symbol "Result"
C:\Users\Patricia\Downloads\Grand.Theft.Auto.San.Andreas-HOODLUM\SAMP\filterscripts\FFS.pwn(185) : error 017: undefined symbol "Result"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

enum pKnow

{

ID,

Name,

Color1,

Color2,

Owner,

};

new PlayerKnow[MAX_PLAYERS][pKnow];

erroarea iti da pentru ca ultimul enum are virgula iar la acesta enumul trebuie sa nu fie

enum pKnow
{
	ID,
	Name,
	Color1,
	Color2,
	Owner
};
new PlayerKnow[MAX_PLAYERS][pKnow]; 
[code]
incearca asa 

iar restul errorilor cred ca-s de la tine din gm..

Link to comment
Share on other sites

tu doar ai dat copy +paste de la el si ai zis o tempnie uriasa :)) ca el avea deja asa :)

si tu vrei sa folosesti aceste Color1 .Color2 ca pe niste culori sa presupun ,si atunci trebuie sa te duci la

public OnPlayerUpdate(playerid)

{

PlayerKnow[playerid][Color1] = GetPlayerColor(playerid);

si la 2 cred ca cam la fel..

}

MS

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.