Need Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need Help (
/showthread.php?tid=618468)
Need Help -
ongnung147 - 06.10.2016
Код 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.
Re: Need Help -
HoangNam - 06.10.2016
Inbox ********, copy your full code
Re: Need Help -
HoangNam - 06.10.2016
Sorry for spam comment but I can fix it.
enum Info
{
pJob,
}
Put it in head of script
Re: Need Help -
SoFahim - 06.10.2016
Show us the Enum of pInfo, up and down's 2more lines.
The problem is error 017: undefined symbol "
PlayerInfo"
Re: Need Help -
ongnung147 - 06.10.2016
Tkas.
Re: Need Help -
azzerking - 07.10.2016
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.