hallo vilicht könnt hir mir weiter helfen beikomme die Error nicht weck
C:\Users\david\Desktop\test.pwn(300) : error 017: undefined symbol "jailed"
C:\Users\david\Desktop\test.pwn(300) : warning 215: expression has no effect
C:\Users\david\Desktop\test.pwn(300) : error 001: expected token: ";", but found "]"
C:\Users\david\Desktop\test.pwn(300) : error 029: invalid expression, assumed zero
C:\Users\david\Desktop\test.pwn(300) : 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.
ocmd:arrest(playerid,params[])
{
new pID;
if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3))
if(sscanf(params,"u",pID))return SendClientMessage(playerid,ROT,"Benutze /knast [id]");
if(GetPlayerWantedLevel(pID)>=1)
if(!IsPlayerInRangeOfPoint(playerid,5,1215.9474,-1820.8887,13.5954) || !IsPlayerInRangeOfPoint(pID,5,1215.9474,-1820.8887,13.5954))return SendClientMessage(playerid,ROT,"Du und der Gefangene müssen beide am Knastpunkt sein!");
Jailer(playerid,pID);
return 1;
}
stock Jailer(playerid,knastid)
{
SetPlayerPos(knastid,198.4943,162.0886,1003.0300);
SetPlayerInterior(knastid,3);
switch(GetPlayerWantedLevel(knastid))
{
case 1:
{
SetTimerEx("Unjail",500000,false,"i",knastid);
SendClientMessage(knastid,ROT,"Du wurdest für 500Sekunden ins Gefängnis gebracht!");
GivePlayerMoney(playerid,1000);
jailed[knastid]1;
}
case 2:
{
SetTimerEx("Unjail",1000000,false,"i",knastid);
SendClientMessage(knastid,ROT,"Du wurdest für 1000Sekunden ins Gefängnis gebracht!");
GivePlayerMoney(playerid,2000);
jailed[knastid]=1;
}
case 3:
{
SetTimerEx("Unjail",1500000,false,"i",knastid);
SendClientMessage(knastid,ROT,"Du wurdest für 1500Sekunden ins Gefängnis gebracht!");
GivePlayerMoney(playerid,3000);
jailed[knastid]=1;
}
case 4:
{
SetTimerEx("Unjail",2000000,false,"i",knastid);
SendClientMessage(knastid,ROT,"Du wurdest für 2000Sekunden ins Gefängnis gebracht!");
GivePlayerMoney(playerid,4000);
jailed[knastid]=1;
}
case 5:
{
SetTimerEx("Unjail",2500000,false,"i",knastid);
SendClientMessage(knastid,ROT,"Du wurdest für 2500Sekunden ins Gefängnis gebracht!");
GivePlayerMoney(playerid,5000);
jailed[knastid]=1;
}
case 6:
{
SetTimerEx("Unjail",3000000,false,"i",knastid);
SendClientMessage(knastid,ROT,"Du wurdest für 3000Sekunden ins Gefängnis gebracht!");
GivePlayerMoney(playerid,6000);
jailed[knastid]=1;
}
}
return 1;
}
forward Unjail(playerid);
public Unjail(playerid)
{
jailed[playerid]=0;
SetPlayerPos(playerid,197.8431,158.3999,1003.0234);
SendClientMessage(playerid,BLAU,"[Entlassen] ");
SendClientMessage(playerid,BLAU,"Sei in Zukunft ein guter Mensch!");
return 1;
}