if(!strcmp(strget(cmdtext,0),"/makeleader"))
{
if(Spieler[playerid][Admin] >= 4 )
{
if(!strlen(strget(cmdtext,1)))
return
SendClientMessage(playerid,COLOR_GREY,"Benutze: /makeleader [ID] [FraktionsID]");
new string[128];
new id3 = strval(strget(cmdtext,1));
new admin3[MAX_PLAYER_NAME];
new gang = strval(strget(cmdtext,2));
GetPlayerName(id3,admin3,sizeof(admin3));
format(string, sizeof(string), "*** Du wurdest von Admin %s zum Leader der Fraktionsnummer %d gemacht.", admin3, gang);
SendClientMessage(id3, COLOR_LIGHTRED, string);
format(string, sizeof(string), "*** Du hast %s zum Leader der Fraktionsnummer %d gemacht.", id3, gang);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
if(gang==0) { SetPlayerSkin(id3,71);gTeam[playerid] = TEAM_OAMT; }
PlayerInfo[id3][leader] = gang;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED,"Du darfst diesen Befehl nicht benutzen !");
}
return 1;
}
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\myrl.pwn(1244) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\myrl.pwn(1255) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\myrl.pwn(1255) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\myrl.pwn(1255) : error 001: expected token: ";", but found "]"
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\myrl.pwn(1255) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\myrl.pwn(1255) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Das ist zeile 255
PlayerInfo[id3][leader] = gang;
Das ist zeile 244
new string[128];