Need Help
#1

Код HTML:
	if(pickupid == gryz4) {
	if(PlayerInfo[playerid][pJob] != 30){
    SendClientMessage(playerid, COLOR_RED, ".............");
    SendClientMessage(playerid, COLOR_RED, "Ban da xin cong viec nay");
	return 1;
    }
Код HTML:
D:\gym\filterscripts\gryz.pwn(210) : error 017: undefined symbol "PlayerInfo"
D:\gym\filterscripts\gryz.pwn(210) : warning 215: expression has no effect
D:\gym\filterscripts\gryz.pwn(210) : error 001: expected token: ";", but found "]"
D:\gym\filterscripts\gryz.pwn(210) : error 029: invalid expression, assumed zero
D:\gym\filterscripts\gryz.pwn(210) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#2

Inbox ********, copy your full code
Reply
#3

Sorry for spam comment but I can fix it.
enum Info
{
pJob,
}
Put it in head of script
Reply
#4

Show us the Enum of pInfo, up and down's 2more lines.

The problem is error 017: undefined symbol "PlayerInfo"
Reply
#5

Tkas.
Reply
#6

I think what has happened here is your checking an Enum that might exist later on in your code.

You need to call this code after the creation of your Enum. This is as long as the Enum actually exists? If you just copied and pasted code from somewhere then you will need to alter your Enum name to match the one you have used.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)