Hey Fischköpfe,
Kann mir evtl. einer helfen bei meinem /veh Command?
Bekomme folgendes beim Compilieren
C:\Users\Willi\Desktop\SAMP Server\gamemodes\Script.pwn(407) : error 017: undefined symbol "dcmd_veh"
C:\Users\Willi\Desktop\SAMP Server\gamemodes\Script.pwn(410) : warning 217: loose indentation
C:\Users\Willi\Desktop\SAMP Server\gamemodes\Script.pwn(410) : error 017: undefined symbol "dcmd_veh"
C:\Users\Willi\Desktop\SAMP Server\gamemodes\Script.pwn(413) : error 017: undefined symbol "params"
C:\Users\Willi\Desktop\SAMP Server\gamemodes\Script.pwn(443) : warning 225: unreachable code
C:\Users\Willi\Desktop\SAMP Server\gamemodes\Script.pwn(443) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Das ist mein Command
dcmd_veh(playerid,params[])
{
new veh,color1,color2;
if(sscanf(params,"ddd",veh,color1,color2)){
return SendClientMessage(playerid,COLOR_NEWS,"Benutze: /veh [vehicleID] [farbe 1] [farbe 2]");
}
if(veh < 400){
return SendClientMessage(playerid,COLOR_NEWS,"falsche vehID![400-611]");
}
if(veh > 611){
return SendClientMessage(playerid,COLOR_NEWS,"falsche vehID![400-611]");
}
if(color1 < 0){
return SendClientMessage(playerid,COLOR_NEWS,"Falsche Farbid1 [0-126]!");
}
if(color1 > 126){
return SendClientMessage(playerid,COLOR_NEWS,"Falsche Farbid1 [0-126]!");
}
if(color2 < 0){
return SendClientMessage(playerid,COLOR_NEWS,"INVALID color2ID![0-126]");
}
if(color2 > 126){
return SendClientMessage(playerid,COLOR_NEWS,"INVALID color2ID![0-126]");
}
new Float:x , Float:y , Float: z, Car;
GetPlayerPos(playerid,x,y,z);
Car = CreateVehicle(veh, x, y, z, 0, color1, color2, 123456789);
SetPlayerPos(playerid,x,y,z);
SetVehiclePos(veh,x,y,z);
PutPlayerInVehicle(playerid, Car, 0);
return 1;
}
Danke im vorraus.