Heyho Leute,
ich bekomme bei diesem Teil 4 Errors, keine Ahnung wieso.
Script
ocmd:makeadmin(playerid, params[])
{
new pID, rank, string1[128], string2[128];
if(IsPlayerAnAdmin(playerid, 5))
if(sscanf(params, "ui", pID, rank))return SendClientMessage(playerid, Color_Help, "Benutze: /makeadmin <Spielername/ID> <Rang>");
if(IsPlayerConnected(pID) && !IsPlayerNPC(pID) && rank => 0 && 5 <= rank)//Die Error Zeile
format(string1, 128, "Admcmd: %s hat dich zum Admin Rang %i gemacht!", PlayerName(playerid), rank);
format(string2, 128, "Du hast %s zum Admin Rang %i gemacht!", PlayerName(pID), rank);
SendClientMessage(pID, Color_Admcmd, string1);
SendClientMessage(playerid, Color_Info, string2);
pData[playerid][pAdmin_Rank] = rank;
return 1;
}
{
new pID, rank, string1[128], string2[128];
if(IsPlayerAnAdmin(playerid, 5))
if(sscanf(params, "ui", pID, rank))return SendClientMessage(playerid, Color_Help, "Benutze: /makeadmin <Spielername/ID> <Rang>");
if(IsPlayerConnected(pID) && !IsPlayerNPC(pID) && rank => 0 && 5 <= rank)//Die Error Zeile
format(string1, 128, "Admcmd: %s hat dich zum Admin Rang %i gemacht!", PlayerName(playerid), rank);
format(string2, 128, "Du hast %s zum Admin Rang %i gemacht!", PlayerName(pID), rank);
SendClientMessage(pID, Color_Admcmd, string1);
SendClientMessage(playerid, Color_Info, string2);
pData[playerid][pAdmin_Rank] = rank;
return 1;
}
Errors
Code
C:\Users\Tobias\Desktop\Jay's Roleplay\gamemodes\jRP.pwn(468) : warning 211: possibly unintended assignmentC:\Users\Tobias\Desktop\Jay's Roleplay\gamemodes\jRP.pwn(468) : error 022: must be lvalue (non-constant)C:\Users\Tobias\Desktop\Jay's Roleplay\gamemodes\jRP.pwn(468) : error 029: invalid expression, assumed zeroC:\Users\Tobias\Desktop\Jay's Roleplay\gamemodes\jRP.pwn(468) : warning 215: expression has no effectC:\Users\Tobias\Desktop\Jay's Roleplay\gamemodes\jRP.pwn(468) : error 001: expected token: ";", but found ")"C:\Users\Tobias\Desktop\Jay's Roleplay\gamemodes\jRP.pwn(468) : fatal error 107: too many error messages on one line