Hey Brotfische, ich habe grade paar Errors.
C:\Users\AGIDA\Desktop\Server\gamemodes\Freeroam Selfmade\selfmade.pwn(124) : error 029: invalid expression, assumed zero
C:\Users\Flake\Desktop\Server\gamemodes\Freeroam Selfmade\selfmade.pwn(124) : error 017: undefined symbol "ocmd_veh"
C:\Users\Flake\Desktop\Server\gamemodes\Freeroam Selfmade\selfmade.pwn(124) : error 029: invalid expression, assumed zero
C:\Users\Flake\Desktop\Server\gamemodes\Freeroam Selfmade\selfmade.pwn(124) : fatal error 107: too many error messages on one line
Ich poste mal den Ganzen Command
ocmd:veh(playerid,params[]) //DER ERROR
{
new ModelID, color[2],Float:VehPos[4], vehicleid;
if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,0xB0AFB0FF,"Du bist nicht zu Fuss");
if(sscanf(params, "ddd",ModelID,color[0],color[1])) return SendClientMessage(playerid,0xB0AFB0FF, "/veh [vehicleid] [color1] [color2]");
if(ModelID < 400 || ModelID > 611) return SendClientMessage(playerid,0xB0AFB0FF, "Die Fahrzeug Id muss von 400 bis 611 sein");
if(color[0] < 0 || color[0] > 126 || color[1] < 0 || color[1] > 126) return SendClientMessage(playerid,0xB0AFB0FF, "the colorid must be between 0 - 126");
if(isPlayerAnAdmin(playerid,5) || CallRemoteFunction("PlayerIsAnAdmin","i",playerid))
{
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));
PutPlayerInVehicle(playerid, vehicleid, 0);
}
else return SendClientMessage(playerid, 0xB0AFB0FF, "Du bist ein Noob Admin");
return 1;
}
Bitte hilft mir
MfG