SA-MP Forums Archive
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=617923)



Need Help - ongnung147 - 28.09.2016

Код 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.
code

Код HTML:
	if(pickupid == gryz4) {
	if(PlayerInfo[playerid][pJob] != 30){
    SendClientMessage(playerid, COLOR_RED, "Сначала устройтесь на работу");
    SendClientMessage(playerid, COLOR_RED, "Сделать это можно у стола администрации");
	return 1;
    }



Re: Need Help - Dayrion - 28.09.2016

Copy & Paste is a bad thing.
Anyway, you have to define PlayerInfo with an enum which contain pJob and, please, don't ask someone to do it for you.