/a chat Eroors

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Ich brauch mal hilfe mit mein Adminchat.
    C:\Users\steffen\Desktop\Gta San Andreas Scripts\Scripting Unterricht 1\gamemodes\su.pwn(193) : error 047: array sizes do not match, or destination array is too small
    C:\Users\steffen\Desktop\Gta San Andreas Scripts\Scripting Unterricht 1\gamemodes\su.pwn(194) : error 029: invalid expression, assumed zero
    C:\Users\steffen\Desktop\Gta San Andreas Scripts\Scripting Unterricht 1\gamemodes\su.pwn(194) : warning 215: expression has no effect
    C:\Users\steffen\Desktop\Gta San Andreas Scripts\Scripting Unterricht 1\gamemodes\su.pwn(195) : error 029: invalid expression, assumed zero
    C:\Users\steffen\Desktop\Gta San Andreas Scripts\Scripting Unterricht 1\gamemodes\su.pwn(195) : warning 215: expression has no effect
    C:\Users\steffen\Desktop\Gta San Andreas Scripts\Scripting Unterricht 1\gamemodes\su.pwn(195) : error 001: expected token: ";", but found "if"
    C:\Users\steffen\Desktop\Gta San Andreas Scripts\Scripting Unterricht 1\gamemodes\su.pwn(213) : warning 217: loose indentation


    _______________


    ocmd:a(playerid,params[])
    {
    new text[100], rang[16], string[128];
    if(GetPVarInt(playerid,"Adminlevel") != 1)return SendClientMessage(playerid,rot,"Du bist kein Admin.");
    if(sscanf(params,"s", text))return SendClientMessage(playerid,rot,"Benutze: /a [text].");
    if(GetPVarInt(playerid,"Adminlevel") == 10)rang = "Projektleitung";
    else if(GetPVarInt(playerid,"Adminlevel") == 9)rang = "stellv. Projektleitung";
    else if(GetPVarInt(playerid,"Adminlevel") == 8) = "Techniker";
    else if(GetPVarInt(playerid,"Adminlevel") == 7)rang = "Manager";
    else if(GetPVarInt(playerid,"Adminlevel") == 6)rang = "Super-Admin";
    else if(GetPVarInt(playerid,"Adminlevel") == 5)rang = "Admin";
    else if(GetPVarInt(playerid,"Adminlevel") == 4)rang = "Super-Moderator";
    else if(GetPVarInt(playerid,"Adminlevel") == 3)rang = "Moderator";
    else if(GetPVarInt(playerid,"Adminlevel") == 2)rang = "Supporter";
    else if(GetPVarInt(playerid,"Adminlevel") == 1)rang = "Probe-Supporter";
    format(string, 128, "[%s] %s: %s[%d]", rang,SpielerName(playerid) , text,playerid);
    for(new i=0; i<GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i))
    {
    if(GetPVarInt(playerid,"Adminlevel") == 1)
    {
    SendClientMessage(i,rot,string);
    }
    }
    }


    Scripter von LoE