ocmd:cveh(playerid, params[])//ZEILE 1951
{
CvehStatus[playerid] += 1;
if(CvehStatus[playerid] == 5)
{
SendClientMessage(playerid, 0xFF0000FF, "Du hast bereits 5 Autos gespawn!");
return 1;
}
new Vehicleid, Farbe1, Farbe2, Float:X, Float:Y, Float:Z, Float:Facing, Auto;
if(sscanf(params, "iii", Vehicleid, Farbe1, Farbe2))return SendClientMessage(playerid, 0xFF0000FF, "Der Befehl lautet: /cveh [Vehicleid] [Farbe1] [Farbe2]");
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Facing);
Auto = AddStaticVehicleEx(Vehicleid, X, Y, Z, Facing, Farbe1, Farbe2, -1);
PutPlayerInVehicle(playerid, Auto, 0);
return 1;
}
Errors :
C:\Users\PC\Desktop\samp_server\gamemodes\RD.pwn(1951) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\samp_server\gamemodes\RD.pwn(1951) : error 017: undefined symbol "ocmd_cveh"
C:\Users\PC\Desktop\samp_server\gamemodes\RD.pwn(1951) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\samp_server\gamemodes\RD.pwn(1951) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.