Hey was ist hier dran falsch:
ocmd:take(playerid, params[])
{
if(!isPlayerInFrakt(playerid,1))return SendClientMessage(playerid,ROT,"Du bist kein Polizist.");
new pID,stringvar;
if(sscanf(params,"uis",stringvar,pID))return SendClientMessage(playerid,BLAU,"/take [Sache] [ID]");
{
if(strcmp(stringvar,"Fuehrerschein",true) == 0)
{
SetPVarInt(pID,"Autofuehrerschein",0);
SendClientMessage(pID,BLAU,"Dir wurde der Führerschein entzogen!");
}
}
}
Die Errors:
C:\Users\LA\Desktop\GTA San Andreas\gamemodes\SelfmadebyLarsBulls.pwn(1768) : error 035: argument type mismatch (argument 1)
C:\Users\LA\Desktop\GTA San Andreas\gamemodes\SelfmadebyLarsBulls.pwn(1774) : warning 209: function "ocmd_take" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.