(704) : error 029: invalid expression, assumed zero
ocmd:take(playerid,params[])
{
if(GetPVarInt(playerid,"Leader") == 1 || GetPVarInt(playerid,"Fraktion") == 1 || GetPVarInt(playerid,"Leader") == 2 || GetPVarInt(playerid,"Fraktion") == 2
{ <------------------------ der Error
new pID, string[128], string2[128], take[16];
if(sscanf(params,"us",pID,take))return SendClientMessage(playerid,ROT,"Benutze: /take [ID] [waffen/autoschein]");
(1144) : warning 217: loose indentation
if(strcmp(cmdtext, "/lock", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,ROT, "* Du must in einem Auto sein.");
return 1; <--------- der warning
}
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) { SendClientMessage(playerid,ROT, "* Du must der Fahrer des Fahrzeugs sein.");
return 1;
}
bitte um hilfe !!