Hey Brotfische,
Mein Problem:
Zeile (509) : Variable wurde falsch definiert (Float,Integer[...])
Zeile (510) : Variable wurde falsch definiert (Float,Integer[...])
Zeile (576) : warning 209: function "ocmd_spawn" should return a value
Zeile (626) : error 027: invalid character constant
Zeile (626) : error 027: invalid character constant
Zeile (1436) : Variable wird nie benutzt: "Aduty"
Dialog Probleme
if(strcmp(cmdtext,"/service",true)==0)
{
ShowPlayerDialog(playerid,DIALOG_SERVICE,DIALOG_STYLE_LIST,"Services:","Medic\nADAC\nTaxi\nWheelman","Ok","Abbrechen");
return 1;
}
Die ersten beiden Warnings:
ocmd:veh(playerid,params[])
{
new ModelID, color[2],Float:VehPos[4], vehicleid, vehicle3Dtext;
if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,ROT,"Du bist nicht zu Fuß unterwegs.");
if(sscanf(params, "ddd",ModelID,color[0],color[1])) return SendClientMessage(playerid,GELB, "Info: Benutze /veh [Fahrzeug ID] [Farbe 1] [Farbe 2]");
if(ModelID < 400 || ModelID > 611) return SendClientMessage(playerid,ROT, "Die Fahrzeug ID muss zwischen 400 und 611 liegen.");
if(color[0] < 0 || color[0] > 255 || color[1] < 0 || color[1] > 255) return SendClientMessage(playerid,ROT, "Die Farb IDs müssen zwischen 0 und 255 liegen.");
if(IsPlayerAnAdmin(playerid,2))
{
GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
GetPlayerFacingAngle(playerid, VehPos[3]);
vehicleid = CreateVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],-1);
LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
SetVehicleNumberPlate(vehicleid,">> Supporter-Mobil <<");
SetVehicleToRespawn(vehicleid);
PutPlayerInVehicle(playerid, vehicleid, 0);
vehicle3Dtext = Create3DTextLabel( ">>Supporter-Mobil<<",GELB,0.0,0.0,0.0,50.0, 0, 1 );
Attach3DTextLabelToVehicle( vehicle3Dtext, vehicleid,0.0,0.0,0.0);
}
else return SendClientMessage(playerid,ROT, "Du bist kein Admin Rang 2!");
return 1;
}
Und den letztne weiß ich selber
Erbitte hilfe!
MFG addix