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);
}
}
}