Was ist an diesen Befehl falsch?
ocmd:duty(playerid,params[])
{
if(isPlayerInFrakt(playerid,1))return SendClientMessage(playerid,Grau,"Du bist kein COP/FBI Member");
if(IsPlayerInRangeOfPoint(playerid,5.0,255.2015,77.2205,1003.6406)
GivePlayerWeapon(playerid,14,100);
GivePlayerWeapon(playerid,30,150);
GivePlayerWeapon(playerid,31,150);
GivePlayerWeapon(playerid,34,50);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
SetPlayerColor(playerid,BLAU);
SendClientMessage(playerid,Grün,"Du bist erfolgreich in den Dienst gegangen");
}
if(isPlayerInFrakt(playerid,12))return SendClientMessage(playerid,Grau,"Du bist kein LCM Member");
if(IsPlayerInRangeOfPoint(playerid,5.0,2133.8635,1444.9141,10.8203)
GivePlayerWeapon(playerid,14,100);
GivePlayerWeapon(playerid,29,150);
GivePlayerWeapon(playerid,30,150);
GivePlayerMoney(playerid,-1300);
SendClientMessage(playerid,Grün,"Erfolgreich für 1300$ ausgerüstet.
return 1;
}
Die Errors:
C:\Users\Alex\Desktop\Selfmade!\gamemodes\tutorial.pwn(3686) : error 001: expected token: ")", but found "-identifier-"
C:\Users\Alex\Desktop\Selfmade!\gamemodes\tutorial.pwn(3694) : warning 209: function "ocmd_duty" should return a value
C:\Users\Alex\Desktop\Selfmade!\gamemodes\tutorial.pwn(3695) : error 010: invalid function or declaration
C:\Users\Alex\Desktop\Selfmade!\gamemodes\tutorial.pwn(3696) : error 010: invalid function or declaration
C:\Users\Alex\Desktop\Selfmade!\gamemodes\tutorial.pwn(3702) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.