if(!strcmp(strget(cmdtext,0),"/invite"))
{
if(Spieler[playerid][leader])
{
if(!strlen(strget(cmdtext,1)))
return
SendClientMessage(playerid,COLOR_GREY,"Benutze: /invite [ID]");
new gang;
new inviteihn = strval(strget(cmdtext,1));
new inviter[MAX_PLAYER_NAME];
GetPlayerName(playerid,inviter,sizeof(inviter));
format(string, sizeof(string), "*** Du wurdest von %s in eine Fraktion eingeladen.", inviter);
SendClientMessage(inviteihn, COLOR_LIGHTRED, string);
format(string, sizeof(string), "*** Du hast %s in deine Fraktion eingeladen.", inviteihn);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
if(gang==0) { SetPlayerSkin(inviteihn,0);team[playerid] = TEAM_ZIVI; }
if(gang==1) { SetPlayerSkin(inviteihn,114);team[playerid] = TEAM_NINJAS; }
if(gang==2) { SetPlayerSkin(inviteihn,280);team[playerid] = TEAM_POLIZEI; }
if(gang==3) { SetPlayerSkin(inviteihn,24);team[playerid] = TEAM_CLARENCE STREET LOCOS; }
if(gang==4) { SetPlayerSkin(inviteihn,70);team[playerid] = TEAM_ARZT; }
if(gang==5) { SetPlayerSkin(inviteihn,61);team[playerid] = TEAM_TAXI; }
Spieler[inviteihn][team] = gang;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED,"Du darfst diesen Befehl nicht benutzen !");
}
return 1;
}
C:\PROGRA~1\ROCKST~1\GTASAN~1\GAMEMO~1\myrl.pwn(2920) : error 028: invalid subscript (not an array or too many subscripts): "team"
C:\PROGRA~1\ROCKST~1\GTASAN~1\GAMEMO~1\myrl.pwn(2920) : warning 215: expression has no effect
C:\PROGRA~1\ROCKST~1\GTASAN~1\GAMEMO~1\myrl.pwn(2920) : error 001: expected token: ";", but found "]"
C:\PROGRA~1\ROCKST~1\GTASAN~1\GAMEMO~1\myrl.pwn(2920) : error 029: invalid expression, assumed zero
C:\PROGRA~1\ROCKST~1\GTASAN~1\GAMEMO~1\myrl.pwn(2920) : 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.
Die fehler sind alle hier
if(gang==0) { SetPlayerSkin(inviteihn,0);team[playerid] = TEAM_ZIVI; }
MFG Mipu
Edit: Hat sich erledigt musste das so machen
if(gang==0) { SetPlayerSkin(inviteihn,0);Spieler[playerid][team] = TEAM_ZIVI; }
if(gang==1) { SetPlayerSkin(inviteihn,114);Spieler[playerid][aFuhrerschein] = TEAM_NINJAS; }
if(gang==2) { SetPlayerSkin(inviteihn,280);Spieler[playerid][aFuhrerschein] = TEAM_POLIZEI; }
if(gang==3) { SetPlayerSkin(inviteihn,24);Spieler[playerid][aFuhrerschein] = TEAM_CLARENCE_STREET_LOCOS; }
if(gang==4) { SetPlayerSkin(inviteihn,70);Spieler[playerid][aFuhrerschein] = TEAM_ARZT; }
if(gang==5) { SetPlayerSkin(inviteihn,61);Spieler[playerid][aFuhrerschein] = TEAM_TAXI; }