22.09.2017, 13:56
(
Последний раз редактировалось TahaMhr; 03.10.2017 в 19:28.
Причина: solved.
)
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:

and from here onwards, I start to get errors:

These are the errors I get:
Well, warning are fine as I know Im missing button2.
Any help would be appreciated.
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; } }

Код:
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; }
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 ![]() 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 ![]() 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 |
Any help would be appreciated.
