SA-MP Forums Archive
Error - 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: Error (/showthread.php?tid=524397)



Error - LarryTiger - 06.07.2014

C:\DOCUME~1\user\Desktop\MARXRE~1\GAMEMO~1\PRRP.pw n(2563) : error 017: undefined symbol "pNMuteTotal"
C:\DOCUME~1\user\Desktop\MARXRE~1\GAMEMO~1\PRRP.pw n(2566) : error 017: undefined symbol "pNMuteTotal"
C:\DOCUME~1\user\Desktop\MARXRE~1\GAMEMO~1\PRRP.pw n(2569) : error 017: undefined symbol "pNMuteTotal"
C:\DOCUME~1\user\Desktop\MARXRE~1\GAMEMO~1\PRRP.pw n(2570) : error 017: undefined symbol "pNMuteTotal"
C:\DOCUME~1\user\Desktop\MARXRE~1\GAMEMO~1\PRRP.pw n(2571) : error 017: undefined symbol "pNMuteTotal"

4 errors

Код:
2563if(PlayerInfo[playerid][pNMuteTotal] < 4)
	{
		new string[64];
		format(string,sizeof(string),"Prison for %d Minutes\nCash Fine ($%d)",PlayerInfo[playerid][pNMuteTotal] * 15, fine);
		ShowPlayerDialogEx(playerid,NMUTE,DIALOG_STYLE_LIST,"Newbie Chat Unmute - Select your Punishment:",string,"Select","Cancel");
	}
	else if(PlayerInfo[playerid][pNMuteTotal] == 4) ShowPlayerDialogEx(playerid,NMUTE,DIALOG_STYLE_LIST,"Newbie Chat Unmute - Select your Punishment:","Prison for 1 Hour","Select","Cancel");
	else if(PlayerInfo[playerid][pNMuteTotal] == 5) ShowPlayerDialogEx(playerid,NMUTE,DIALOG_STYLE_LIST,"Newbie Chat Unmute - Select your Punishment:","Prison for 1 Hour and 15 Minutes","Select","Cancel");
	else if(PlayerInfo[playerid][pNMuteTotal] == 6) 2571ShowPlayerDialogEx(playerid,NMUTE,DIALOG_STYLE_LIST,"Newbie Chat Unmute - Select your Punishment:","Prison for 1 Hour and 30 Minutes","Select","Cancel");
}



Re: Error - ScripteRNaBEEL - 06.07.2014

at top of your gamemode do
pawn Код:
new pNMuteTotal



Re : Error - Clad - 06.07.2014

pawn Код:
new pNMuteTotal



Re: Error - NoahF - 06.07.2014

Don't forget the ; at the end of making a new variable.