14.09.2015, 00:43
Hey guys I opened an admin filterscript to add a little something to it, and when I compiled I got those errors :
error 075: input line too long (after substitutions)
error 037: invalid string (possibly non-terminated string)
error 029: invalid expression, assumed zero
error 017: undefined symbol "n"
fatal error 107: too many error messages on one line
Can you help me correct the script ?
Here it is :
error 075: input line too long (after substitutions)
error 037: invalid string (possibly non-terminated string)
error 029: invalid expression, assumed zero
error 017: undefined symbol "n"
fatal error 107: too many error messages on one line
Can you help me correct the script ?
Here it is :
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 1:
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Level 1 Admin Commands", "/ip\n/say\n/jail\n/slap\n/mute\n/unjail\n/repair\n/freeze\n/unmute\n/reports\n/unfreeze\n/cc", "Select", "Close");
}
case 1:
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Level 2 Admin Commands", "/ip\n/say\n/jail\n/slap\n/mute\n/unjail\n/repair\n/freeze\n/unmute\n/reports\n/unfreeze\n/cc\n/fix\n/ann\n/flip\n/kick\n/drop\n/warn\n/zcam\n/spawn\n/eject\n/zspec\n/laston\n/addnos\n/getcord\n/godmode\n/specoff\n/megajump\n/highlight\n/clearchat", "", "Close");
}
case 2:
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Level 3 Admin Commands", "/ip\n/say\n/jail\n/slap\n/mute\n/unjail\n/repair\n/freeze\n/unmute\n/reports\n/unfreeze\n/cc\n/fix\n/ann\n/flip\n/kick\n/drop\n/warn\n/zcam\n/spawn\n/eject\n/zspec\n/laston\n/addnos\n/getcord\n/godmode\n/specoff\n/megajump\n/highlight\n/clearchat\n/fu\n/aka\n/ban\n/car\n/goto\n/duel\n/force\n/unban\n/zmenu\n/setcord\n/givegun\n/setname\n/gethere\n/explode\n/sethealth\n/setarmour\n/engineoff\n/setgtavity\n/setallcash\n/setallskin\n/setallscore\n/setallwanted\n/setallweather\n/killplayer\n/changeskincmd","", "Close");
}
case 3:
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Level 4 Admin Commands", "/ip\n/say\n/jail\n/slap\n/mute\n/unjail\n/repair\n/freeze\n/unmute\n/reports\n/unfreeze\n/cc\n/fix\n/ann\n/flip\n/kick\n/drop\n/warn\n/zcam\n/spawn\n/eject\n/zspec\n/laston\n/addnos\n/getcord\n/godmode\n/specoff\n/megajump\n/highlight\n/clearchat\n/fu\n/aka\n/ban\n/car\n/goto\n/duel\n/force\n/unban\n/zmenu\n/setcord\n/givegun\n/setname\n/gethere\n/explode\n/sethealth\n/setarmour\n/engineoff\n/setgtavity\n/setallcash\n/setallskin\n/setallscore\n/setallwanted\n/setallweather\n/killplayer\n/changeskincmd\n/hide\n/unhide\n/disarm\n/getall\n/healall\n/jetpack\n/unbanip\n/killall\n/muteall\n/ejectall\n/spawnall\n/disarmall\n/armourall\n/unmuteall\n/explodeall\n/lockserver\n/unlockserver\n/fakechatgmx", "", "Close");
}
case 4:
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Level 5 Admin/Owner Commands", "/ip\n/say\n/jail\n/slap\n/mute\n/unjail\n/repair\n/freeze\n/unmute\n/reports\n/unfreeze\n/cc\n/fix\n/ann\n/flip\n/kick\n/drop\n/warn\n/zcam\n/spawn\n/eject\n/zspec\n/laston\n/addnos\n/getcord\n/godmode\n/specoff\n/megajump\n/highlight\n/clearchat\n/fu\n/aka\n/ban\n/car\n/goto\n/duel\n/force\n/unban\n/zmenu\n/setcord\n/givegun\n/setname\n/gethere\n/explode\n/sethealth\n/setarmour\n/engineoff\n/setgtavity\n/setallcash\n/setallskin\n/setallscore\n/setallwanted\n/setallweather\n/killplayer\n/changeskincmd\n/hide\n/unhide\n/disarm\n/getall\n/healall\n/jetpack\n/unbanip\n/killall\n/muteall\n/ejectall\n/spawnall\n/disarmall\n/armourall\n/unmuteall\n/explodeall\n/lockserver\n/unlockserver\n/fakechatgmx\n/delacc\n/object\n/kickall\n/setlevel\n/zconsole", "", "Close");
}
}
}
}
}
return 1;
}