Hey,
immer wenn ich ingame ein Car erstelle kommt folgender Warning::
" Warning(opcode 0x6E7): Exception 0xC0000005 at 0x7F0BF7 "
Wieso kommt das? oO
Mein /veh Befehl:
ocmd:veh(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
new vehicle, color1, color2;
new Float:x,Float:y,Float:z,Float:a;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
if(sscanf(params,"iii",vehicle,color1,color2)) return SendClientMessage(playerid,Grau,"[Benutze]: /veh [VehID] [Farbe1] [Farbe2]");
new vid = CreateVehicle(vehicle,x,y,z,a,0,0,0);
AddVehicleComponent(vid,1024);
SetVehicleNumberPlate(vid,"~Admin~");
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
Motor[vid] = true;
new str[128];
PutPlayerInVehicle(playerid,vid,0);
format(str,sizeof(str),"Du hast ein Admincar gespawnt! (Name: %s - ID: %i)",VehicleName[GetVehicleModel(vid)-400],vehicle);
SendClientMessage(playerid,bBlau,str);
return 1;
}
SendClientMessage(playerid,aRot,"[Info]: Du bist nicht befugt!");
return 1;
}
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
new vehicle, color1, color2;
new Float:x,Float:y,Float:z,Float:a;
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
if(sscanf(params,"iii",vehicle,color1,color2)) return SendClientMessage(playerid,Grau,"[Benutze]: /veh [VehID] [Farbe1] [Farbe2]");
new vid = CreateVehicle(vehicle,x,y,z,a,0,0,0);
AddVehicleComponent(vid,1024);
SetVehicleNumberPlate(vid,"~Admin~");
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
Motor[vid] = true;
new str[128];
PutPlayerInVehicle(playerid,vid,0);
format(str,sizeof(str),"Du hast ein Admincar gespawnt! (Name: %s - ID: %i)",VehicleName[GetVehicleModel(vid)-400],vehicle);
SendClientMessage(playerid,bBlau,str);
return 1;
}
SendClientMessage(playerid,aRot,"[Info]: Du bist nicht befugt!");
return 1;
}
//EDIT:
Achja, und wenn ich zu oft Car erstelle, bekomme ich einen Exe-Crash!