a weird error.
#1

I was making a "cmds" dialog, which will automatically detect the player level and display the available commands, till level 2, i was going good, from 3rd level, I get an error which i couldn't to resolve.
This is the pic and code till where its going fine:

Код:
dcmd_cmds(playerid, params[])
{
	if(AccInfo[playerid][Level] == 0)
	{
	ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "Server Commands", "Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney", "Continue");
	return 1;
	}
	else
	if(AccInfo[playerid][Level] == 1)
	{
	ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX, "Server Commands", "Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney \nAdmin Level 1 Commands: \nsetcolour, settime, setweather, eject, force , burn, asay, highlight, getid, warn, laston, adminarea, hide, unhide, weapslist, morning, reports, miniguns, botcheck, duel, saveskin, useskin, dontuseskin", "Continue");
	return 1;
	}
	else
	if(AccInfo[playerid][Level] == 2)
	{
	ShowPlayerDialog(playerid, 14, DIALOG_STYLE_MSGBOX, "Server Commands", "Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney \nAdmin Level 1 Commands: \nsetcolour, settime, setweather, eject, force , burn, asay, highlight, getid, warn, laston, adminarea, hide, unhide, weapslist, morning, reports, miniguns, botcheck, duel, saveskin, useskin, dontuseskin \nAdmin Level 2 Commands: \njailed, frozen, muted, mute, unmute, slap, akill", "Continue");
	return 1;
	}
}
and from here onwards, I start to get errors:

Код:
dcmd_cmds(playerid, params[])
{
	if(AccInfo[playerid][Level] == 0)
	{
	ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "Server Commands", "Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney", "Continue");
	return 1;
	}
	else
	if(AccInfo[playerid][Level] == 1)
	{
	ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX, "Server Commands", "Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney \nAdmin Level 1 Commands: \nsetcolour, settime, setweather, eject, force , burn, asay, highlight, getid, warn, laston, adminarea, hide, unhide, weapslist, morning, reports, miniguns, botcheck, duel, saveskin, useskin, dontuseskin", "Continue");
	return 1;
	}
	else
	if(AccInfo[playerid][Level] == 2)
	{
	ShowPlayerDialog(playerid, 14, DIALOG_STYLE_MSGBOX, "Server Commands", "Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney \nAdmin Level 1 Commands: \nsetcolour, settime, setweather, eject, force , burn, asay, highlight, getid, warn, laston, adminarea, hide, unhide, weapslist, morning, reports, miniguns, botcheck, duel, saveskin, useskin, dontuseskin \nAdmin Level 2 Commands: \njailed, frozen, muted, mute, unmute, slap, akill", "Continue");
	return 1;
	}
	if(AccInfo[playerid][Level] == 3)
	{
	ShowPlayerDialog(playerid, 15, DIALOG_STYLE_MSGBOX, "Server Commands", "Normal Player Commands: \n/rules, /cars, /guns, /teles, /dms, /lockcar, /unlockcar, /fix, /report, /topmoney \nAdmin Level 1 Commands: \nsetcolour, settime, setweather, eject, force , burn, asay, highlight, getid, warn, laston, adminarea, hide, unhide, weapslist, morning, reports, miniguns, botcheck, duel, saveskin, useskin, dontuseskin \nAdmin Level 2 Commands: \njailed, frozen, muted, mute, unmute, slap, akill \nAdmin Level 3 Commands: \nspawn, announce2, announce, kick, ban, spec, specvehicle, specoff, tempban, write", "Continue");
	}
	return 1;
}
These are the errors I get:
Quote:

C:\Users\Jilani\Desktop\Server Files\filterscripts\AdminSys.pwn(4492) : warning 202: number of arguments does not match definition
C:\Users\Jilani\Desktop\Server Files\filterscripts\AdminSys.pwn(449 : warning 202: number of arguments does not match definition
C:\Users\Jilani\Desktop\Server Files\filterscripts\AdminSys.pwn(4504) : warning 202: number of arguments does not match definition
C:\Users\Jilani\Desktop\Server Files\filterscripts\AdminSys.pwn(450 : error 075: input line too long (after substitutions)
C:\Users\Jilani\Desktop\Server Files\filterscripts\AdminSys.pwn(4509) : error 037: invalid string (possibly non-terminated string)
C:\Users\Jilani\Desktop\Server Files\filterscripts\AdminSys.pwn(4509) : error 017: undefined symbol "Normal"
C:\Users\Jilani\Desktop\Server Files\filterscripts\AdminSys.pwn(4509) : error 029: invalid expression, assumed zero
C:\Users\Jilani\Desktop\Server Files\filterscripts\AdminSys.pwn(4509) : fatal error 107: too many error messages on one line

Well, warning are fine as I know Im missing button2.

Any help would be appreciated.
Reply


Messages In This Thread
a weird error. -Solved. - by TahaMhr - 22.09.2017, 13:56
Re: a weird error. - by Kraeror - 22.09.2017, 15:30
Re: a weird error. - by TahaMhr - 22.09.2017, 16:30
Re: a weird error. - by GaByM - 22.09.2017, 16:36
Re: a weird error. - by TahaMhr - 22.09.2017, 20:01
Re: a weird error. - by 10MIN - 23.09.2017, 07:53
Re: a weird error. - by TahaMhr - 23.09.2017, 10:30
Re: a weird error. - by Kampott - 23.09.2017, 12:26
Re: a weird error. - by GaByM - 23.09.2017, 16:52
Re: a weird error. - by TahaMhr - 27.09.2017, 12:27

Forum Jump:


Users browsing this thread: 3 Guest(s)