if(strcmp(cmd, "/prison", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /prison [Spieler ID / Name] [Zeit in Minuten] [Grund]");
return 1;
}
new playa;
new money;
new grund;
new SpielerName;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
grund = strval(tmp);
if(playa == playerid)
{
SendClientMessage(playerid, COLOR_GRAD1, "Du kannst nicht dich selber einsperren!");
return 1;
}
if(PlayerInfo[playerid][pAdmin] < PlayerInfo[playa][pAdmin])
{
SendClientMessage(playerid, COLOR_GRAD1, "Du kannst keinen höherrangigen Admin einsperren!");
return 1;
}
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pSupporter] >= 1)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Du hast %s eingesperrt.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "* Du wurdest von Admin %s in den Knast gesteckt.", sendername);
SendClientMessage(playa, COLOR_LIGHTRED, string);
ResetPlayerWeapons(playa);
WantedPoints[playa] = 0;
new all[250];
format(all,sizeof(all),"%s wurde vom Admin %s für %d Minuten eingesperrt ! Grund : %s",SpielerName(playa),SpielerName(playerid),money*60,grund); //26930
SendClientMessageToAll(COLOR_RED,all);
PlayerInfo[playa][pJailed] = 1;
PlayerInfo[playa][pJailTime] = money*60;
SetPlayerInterior(playa, 3);
SetPlayerPos(playa, 197.8290,161.8141,1003.0300);
format(string, sizeof(string), "Du wurdest für %d Minuten eingesperrt. Kaution: Nein", money);
SendClientMessage(playa, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du darfst diesen Befehl nicht benutzen!");
}
}
return 1;
}
C:\Users\-\Desktop\GTA Scripts\Effected Reallife\gamemodes\ER.pwn(26930) : error 012: invalid function call, not a valid address
C:\Users\-\Desktop\GTA Scripts\Effected Reallife\gamemodes\ER.pwn(26930) : warning 215: expression has no effect
C:\Users\-\Desktop\GTA Scripts\Effected Reallife\gamemodes\ER.pwn(26930) : error 001: expected token: ";", but found ")"
C:\Users\-\Desktop\GTA Scripts\Effected Reallife\gamemodes\ER.pwn(26930) : error 029: invalid expression, assumed zero
C:\Users\-\Desktop\GTA Scripts\Effected Reallife\gamemodes\ER.pwn(26930) : fatal error 107: too many error messages on one line