Ich habe versucht einen /arrest Befehl für die Cops zu machen aber der Funktionier nicht und hat auch einige errors
Hier die Errors:
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(1802) : error 036: empty statement
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(1806) : error 036: empty statement
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(1810) : error 036: empty statement
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(1814) : error 036: empty statement
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(1818) : error 036: empty statement
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(1822) : error 036: empty statement
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2460) : error 010: invalid function or declaration
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2461) : error 001: expected token: "-identifier-", but found "1"
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2464) : error 054: unmatched closing brace ("}")
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2466) : error 010: invalid function or declaration
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2467) : error 001: expected token: "-identifier-", but found "1"
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2470) : error 054: unmatched closing brace ("}")
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2472) : error 010: invalid function or declaration
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2473) : error 001: expected token: "-identifier-", but found "1"
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2476) : error 054: unmatched closing brace ("}")
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2478) : error 010: invalid function or declaration
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2479) : error 001: expected token: "-identifier-", but found "1"
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2482) : error 054: unmatched closing brace ("}")
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2484) : error 010: invalid function or declaration
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2485) : error 001: expected token: "-identifier-", but found "1"
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2488) : error 054: unmatched closing brace ("}")
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2490) : error 010: invalid function or declaration
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2491) : error 001: expected token: "-identifier-", but found "1"
C:\Users\Chris\Desktop\0.3x\gamemodes\Script.pwn(2494) : error 054: unmatched closing brace ("}")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
24 Errors.
Alles anzeigen
Und Hier der /arrest Befehl:
ocmd:arrest(playerid,params[])
{
if(IstSpielerInFraktion(playerid,1))
{
new pID, string[128];
if(sscanf(params,"ui",pID)) return SendClientMessage(playerid,ROT,"/arrest [id]");
format(string,sizeof(string),"Du hast %s eingeknastet.",SpielerName(pID));
SendClientMessage(playerid,LILA,string);
SetPlayerPos(pID,219.1285,109.2994,999.0156);
new wantedlevel;
wantedlevel = GetPlayerWantedLevel(pID);
if(wantedlevel==1);
{
SetTimer("1WantedTime",300000,false);
}
if(wantedlevel==2);
{
SetTimer("2WantedTime",600000,false);
}
if(wantedlevel==3);
{
SetTimer("3WantedTime",900000,false);
}
if(wantedlevel==4);
{
SetTimer("4WantedTime",1200000,false);
}
if(wantedlevel==5);
{
SetTimer("5WantedTime",1500000,false);
}
if(wantedlevel==6);
{
SetTimer("6WantedTime",1800000,false);
}
return 1;
}
else
{
SendClientMessage(playerid,ROT,"Du bist in keiner Staatsfraktion!");
}
return 1;
}
forward 1WantedTime();
public 1WantedTime()
{
SetPlayerPosition(pID,2294.4167,2424.8342,10.8203);
}
forward 2WantedTime();
public 2WantedTime()
{
SetPlayerPosition(pID,2294.4167,2424.8342,10.8203);
}
forward 3WantedTime();
public 3WantedTime()
{
SetPlayerPosition(pID,2294.4167,2424.8342,10.8203);
}
forward 4WantedTime();
public 4WantedTime()
{
SetPlayerPosition(pID,2294.4167,2424.8342,10.8203);
}
forward 5WantedTime();
public 5WantedTime()
{
SetPlayerPosition(pID,2294.4167,2424.8342,10.8203);
}
forward 6WantedTime();
public 6WantedTime()
{
SetPlayerPosition(pID,2294.4167,2424.8342,10.8203);
}
Ich habe schon überall nachgelesen und weiß echt nichtmehr weiter
Währe cool wenn ihr mir helfen könntet
Danke schonmal im voraus
Chris