Guten Tag,
Habe 2 Errors.
Hier die Errors:
C:\Users\Alex\Desktop\Testserver\gamemodes\Selfmade.pwn(929) : error 017: undefined symbol "ProxDetectorS"
Hier der Befehl:
ocmd:cuff(playerid,params[])
{
new pID;
if(!isPlayerInFrakt(playerid,1))return SendClientMessage(playerid,Grau,"Du bist kein Beamter.");
{
if(sscanf(params, "u", pID))
{
SendClientMessage(playerid,Grau, "Nutze: /cuff [ID]");
return 1;
}
if (ProxDetectorS(8.0, playerid, pID))
{
new str[128], Officer[MAX_PLAYER_NAME], Spieler11[MAX_PLAYER_NAME];
GetPlayerName(playerid, Officer, sizeof(Officer));
GetPlayerName(pID, Spieler11, sizeof(Spieler11));
format(str, sizeof(str), "Officer %s hat %s Handschellen angelegt", Officer, Spieler11);
SendClientMessageToAll(Gold, str);
SetPlayerSpecialAction(pID,24);
SetPlayerAttachedObject(pID, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
}
else { SendClientMessage(playerid,ROT, "Dieser Spieler ist nicht in deiner Nähe."); }
}
return 1;
}