Guten Tag,
ich bin grade an meinem Selfmade und wollte die Adminhilfe in Dialoge fassen.
Es klappt auch ganz gut nur währen da nicht die Errors.
Hier die Errors:C:\Users\Sven\Desktop\Selfmade rl\gamemodes\Selfmade.pwn(2051) : error 075: input line too long (after substitutions)
C:\Users\Sven\Desktop\Selfmade rl\gamemodes\Selfmade.pwn(2052) : error 037: invalid string (possibly non-terminated string)
C:\Users\Sven\Desktop\Selfmade rl\gamemodes\Selfmade.pwn(2052) : error 017: undefined symbol "Adminlevel"
C:\Users\Sven\Desktop\Selfmade rl\gamemodes\Selfmade.pwn(2052) : warning 215: expression has no effect
C:\Users\Sven\Desktop\Selfmade rl\gamemodes\Selfmade.pwn(2052) : error 001: expected token: ";", but found ":"
C:\Users\Sven\Desktop\Selfmade rl\gamemodes\Selfmade.pwn(2052) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Hier des ganze Command:
if(strcmp(strget(cmdtext,0),"/adminhelp",true) == 0)
{
if(pInfo[playerid][admin] == 1)
{
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"Adminhilfe","Adminlevel 1:/a [Text] /say [Text] /kick [ID] [Grund] /ip [ID] /fraktionsids","OK", "Abbrechen");
}
if(pInfo[playerid][admin] == 2)
{
ShowPlayerDialog(playerid,7,DIALOG_STYLE_MSGBOX,"Adminhilfe","Adminlevel 1:/a [Text] /say [Text] /kick [ID] [Grund] /ip [ID] /fraktionsids\nAdminlevel 2: /mute [ID] /unmute [ID] /slap [ID] [Höhe] /goto [ID] /sethp [ID] [Leben]","OK", "Abbrechen");
}
if(pInfo[playerid][admin] == 3)
{
ShowPlayerDialog(playerid,8,DIALOG_STYLE_MSGBOX,"Adminhilfe","Adminlevel 1:/a [Text] /say [Text] /kick [ID] [Grund] /ip [ID] /fraktionsids\nAdminlevel 2: /mute [ID] /unmute [ID] /slap [ID] [Höhe] /goto [ID] /sethp [ID] [Leben]\nAdminlevel 3: /get [ID] /setskin [ID] [SkinID] /gt [Text]","OK", "Abbrechen");
}
if(pInfo[playerid][admin] == 4)
{
ShowPlayerDialog(playerid,9,DIALOG_STYLE_MSGBOX,"Adminhilfe","Adminlevel 1:/a [Text] /say [Text] /kick [ID] [Grund] /ip [ID] /fraktionsids\nAdminlevel 2: /mute [ID] /unmute [ID] /slap [ID] [Höhe] /goto [ID] /sethp [ID] [Leben]\nAdminlevel 3: /get [ID] /setskin [ID] [SkinID] /gt [Text]\nAdminlevel 4: /ban [ID] [Grund] /givecash [ID] [Menge] /freeze [ID] /unfreeze [ID] /veh [VehID] [Farbe 1] [Farbe 2] /weather [WetterID]","OK", "Abbrechen");
}
if(pInfo[playerid][admin] == 5)
{//Errorzeile 1
ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"Adminhilfe","Adminlevel 1:/a [Text] /say [Text] /kick [ID] [Grund] /ip [ID] /fraktionsids\nAdminlevel 2: /mute [ID] /unmute [ID] /slap [ID] [Höhe] /goto [ID] /sethp [ID] [Leben]\nAdminlevel 3: /get [ID] /setskin [ID] [SkinID] /gt [Text]\nAdminlevel 4: /ban [ID] [Grund] /givecash [ID] [Menge] /freeze [ID] /unfreeze [ID] /veh [VehID] [Farbe 1] [Farbe 2] /weather [WetterID]\nAdminlevel 5: /erstellen [Preis] [Interrior] /innenraum /restart /makeadmin [ID] [Adminlevel]","OK", "Abbrechen");//Errorzeile 2
}
return 1;
}
return 0;
}
Ich hoffe mir kann jemand helfen.
mfg