Hallo,
ich habe seit heute diese Warnings:
die Zeile:
if(PlayerInfo[i][0] > 0)
Zeilen Zuvor & dannach:
public SaveAccounts()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
OnPlayerUpdate(i);
if(PlayerInfo[i][0] > 0)
{
if(PlayerInfo[i][pContractTime] < 25)
{
PlayerInfo[i][pContractTime] ++;
}
}
}
}
}
Nummer Zwei:
die Zeile:
if(!PlayerInfo[playerid][pMember] == 20 || !PlayerInfo[playerid][pLeader] == 20) { return SendClientMessage(playerid,COLOR_RED,"Du bist kein Wheelman!"); }
Zeilen Zuvor & dannach:
dcmd_take(playerid,params[])
{
new pID,seatid,string[64],pName[MAX_PLAYER_NAME],pIdName[MAX_PLAYER_NAME];
if(!IsPlayerInAnyVehicle(playerid)) { return SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Fahrzeug!"); }
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) { return SendClientMessage(playerid,0xAFAFAFAA,"Du bist nicht der Fahrer!"); }
if(sscanf(params,"ud",pID,seatid)) { return SendClientMessage(playerid,0xAFAFAFAA,"SYNTAX: /take [playerid] [SitzId]"); }
if(!IsPlayerConnected(pID)) { return SendClientMessage(playerid,COLOR_RED,"Ungültige ID!"); }
if(GetDistanceBetweenPlayers(playerid,pID) > 6.0) { return SendClientMessage(playerid,COLOR_GREY,"Du bist zu weit entfernt!"); }
if(!IsPlayerInAnyVehicle(pID)) { return SendClientMessage(playerid,COLOR_RED,"Der Spieler ist in keinem Fahrzeug!"); }
if(!PlayerInfo[playerid][pMember] == 20 || !PlayerInfo[playerid][pLeader] == 20) { return SendClientMessage(playerid,COLOR_RED,"Du bist kein Wheelman!"); }
GetPlayerName(playerid,pName,sizeof(pName));
GetPlayerName(pID,pIdName,sizeof(pIdName));
PutPlayerInVehicle(pID,GetPlayerVehicleID(playerid),seatid);
TogglePlayerControllable(pID,1);
PlayerTied[pID] = 0;
PlayerCuffed[pID] = 0;
format(string,sizeof(string),"Du hast %s in dein Fahrzeug gezogen!",pIdName);
SendClientMessage(playerid,COLOR_GREY,string);
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "%s befreit %s und zieht ihn in sein Fahrzeug.", plname, pIdName);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(pID,"~r~Befreit!",5000,3);
GameTextForPlayer(playerid,"~r~Erfolgreich befreit!",5000,3);
return 1;
}