Hallo,
ich habe eben einen cmd (ahelp) geschrieben, naja und sehe selbst
ZitatAlles anzeigenC:\Users\Hami\Desktop\MySQL- Selfmade\gamemodes\Script.pwn(943) : error 029: invalid expression, assumed zero
C:\Users\Hami\Desktop\MySQL- Selfmade\gamemodes\Script.pwn(943) : warning 215: expression has no effect
C:\Users\Hami\Desktop\MySQL- Selfmade\gamemodes\Script.pwn(943) : error 001: expected token: ";", but found "if"
C:\Users\Hami\Desktop\MySQL- Selfmade\gamemodes\Script.pwn(948) : error 029: invalid expression, assumed zero
C:\Users\Hami\Desktop\MySQL- Selfmade\gamemodes\Script.pwn(948) : warning 215: expression has no effect
C:\Users\Hami\Desktop\MySQL- Selfmade\gamemodes\Script.pwn(948) : error 001: expected token: ";", but found "if"
C:\Users\Hami\Desktop\MySQL- Selfmade\gamemodes\Script.pwn(953) : error 029: invalid expression, assumed zero
C:\Users\Hami\Desktop\MySQL- Selfmade\gamemodes\Script.pwn(953) : warning 215: expression has no effect
C:\Users\Hami\Desktop\MySQL- Selfmade\gamemodes\Script.pwn(953) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
ocmd:ahelp(playerid,params[])
{
new errorstring[100],zeigestring[250],string[180],string1[180],string2[180],string3[180],string4[180],string5[180];
format(errorstring,sizeof(errorstring),""COLR"Info:"COLW" Du kannst diesen Befehl nicht benutzen!");
format(string1, sizeof(string1), "Der Adminrang 1 hat zur Zeit keine Befehle!");
format(string2, sizeof(string2), "/kick");
format(string3, sizeof(string3), "/kick /ban");
format(string4, sizeof(string4), "/kick /ban");
format(string5, sizeof(string5), "/kick /ban /makeadmin");
if(!IsPlayerAnAdmin(playerid,1))
{
format(zeigestring,sizeof(zeigestring),"%s\n%s",string,string1);
ShowPlayerDialog(playerid, DG_ADMINHILFE, DG_MSGBOX,ServerName,zeigestring,"Schließen","");
}
else if(!IsPlayerAnAdmin(playerid,2))return ShowPlayerDialog(playerid, DG_ERROR, DG_MSGBOX,ServerName,errorstring,"Schließen","");
{
format(zeigestring,sizeof(zeigestring),"%s\n%s\n%s",string,string1,string2);
ShowPlayerDialog(playerid, DG_ADMINHILFE, DG_MSGBOX,ServerName,zeigestring,"Schließen","");
}
else if(!IsPlayerAnAdmin(playerid,2))return ShowPlayerDialog(playerid, DG_ERROR, DG_MSGBOX,ServerName,errorstring,"Schließen","");
{
format(zeigestring,sizeof(zeigestring),"%s\n%s\n%s",string,string1,string2);
ShowPlayerDialog(playerid, DG_ADMINHILFE, DG_MSGBOX,ServerName,zeigestring,"Schließen","");
}
else if(!IsPlayerAnAdmin(playerid,4))return ShowPlayerDialog(playerid, DG_ERROR, DG_MSGBOX,ServerName,errorstring,"Schließen","");
{
format(zeigestring,sizeof(zeigestring),"%s\n%s\n%s\n%s\n%s",string,string1,string2,string3,string4);
ShowPlayerDialog(playerid, DG_ADMINHILFE, DG_MSGBOX,ServerName,zeigestring,"Schließen","");
}
else if(!IsPlayerAnAdmin(playerid,5))return ShowPlayerDialog(playerid, DG_ERROR, DG_MSGBOX,ServerName,errorstring,"Schließen","");
{
format(zeigestring,sizeof(zeigestring),"%s\n%s\n%s\n%s\n%s\n%s",string,string1,string2,string3,string4,string5);
ShowPlayerDialog(playerid, DG_ADMINHILFE, DG_MSGBOX,ServerName,zeigestring,"Schließen","");
}
return 1;
}
Ich habs die ganze Zeit versucht! Kann mir vllt. jmd. helfen ?
Lg