ging nicht..
habe es jetz so gemacht..
trotzdem danke:
if(strcmp(cmd,"/checkid",true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehid = GetPlayerVehicleID(playerid);
format(string, 280, "Carid = %d !",vehid);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_GRAD1,"Du bist in keinem Fahrzeug!");
}
return 1;
}