[DUDA]Errores al compilar!!!!! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [DUDA]Errores al compilar!!!!! (
/showthread.php?tid=465766)
[DUDA]Errores al compilar!!!!! -
jose005 - 23.09.2013
linea:
Код:
if(VehicleEnum[playerid][playervehicleid][veh_id] == INVALID_PLAYER_VEHICLE_ID)
Errores:
Код:
warning 213: tag mismatch
error 001: expected token: ")", but found "["
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line
AYUDA!
Re: [DUDA]Errores al compilar!!!!! -
PT - 23.09.2013
estбs seguro de que el error no estб en la lнnea de arriba?
Respuesta: Re: [DUDA]Errores al compilar!!!!! -
jose005 - 23.09.2013
Quote:
Originally Posted by PT
estбs seguro de que el error no estб en la lнnea de arriba?
|
Код:
stock CreatePlayerVehicle(playerid, playervehicleid, modelid, Float: x, Float: y, Float: z, Float: angle, color1, color2, price)
{
if(VehicleEnum[playerid][playervehicleid][veh_id] == INVALID_PLAYER_VEHICLE_ID)
{
PlayerCars++;
carsforplayer[playerid]++;
PlayerVehicleInfo[playerid][playervehicleid][veh_model] = modelid;
PlayerVehicleInfo[playerid][playervehicleid][veh_x] = x;
PlayerVehicleInfo[playerid][playervehicleid][veh_y] = y;
PlayerVehicleInfo[playerid][playervehicleid][veh_z] = z;
PlayerVehicleInfo[playerid][playervehicleid][veh_rot] = angle;
PlayerVehicleInfo[playerid][playervehicleid][veh_world] = GetPlayerVirtualWorld(playerid);
PlayerVehicleInfo[playerid][playervehicleid][veh_colors[1]] = color1;
PlayerVehicleInfo[playerid][playervehicleid][veh_colors[2]] = color2;
PlayerVehicleInfo[playerid][playervehicleid][veh_price] = price;
PlayerVehicleInfo[playerid][playervehicleid][veh_locked] = 0;
PlayerVehicleInfo[playerid][playervehicleid][veh_impounded] = 0;
for(new m = 0; m < MAX_MODS; m++)
{
PlayerVehicleInfo[playerid][playervehicleid][veh_comp][m] = 0;
}
new carcreated = CreateVehicle(modelid,x,y,z,angle,color1,color2,-1);
PlayerVehicleInfo[playerid][playervehicleid][veh_id] = carcreated;
SetVehicleVirtualWorld(carcreated, PlayerVehicleInfo[playerid][playervehicleid][pvVW]);
//SetVehicleNumberPlate(carcreated, PlayerVehicleInfo[playerid][playervehicleid][pvNumberPlate]);
return carcreated;
}
return INVALID_PLAYER_VEHICLE_ID;
}
ese es la funcion completa amigo
Respuesta: [DUDA]Errores al compilar!!!!! -
DarkSonic - 26.09.2013
Cambia
if(VehicleEnum[playerid][playervehicleid][veh_id] == INVALID_PLAYER_VEHICLE_ID)
Por
if(VehicleEnum[playervehicleid][veh_id] == INVALID_PLAYER_VEHICLE_ID)