[Pomoc]Erore

Započeo Zare_Nicovski, Jun 09, 2013, 11:24:44 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

ERR C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\FILTER~1\COS-IV~1.PWN(1213) : error 017: undefined symbol "VehicleInfo"
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\FILTER~1\COS-IV~1.PWN(1213) : warning 215: expression has no effect
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\FILTER~1\COS-IV~1.PWN(1213) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\FILTER~1\COS-IV~1.PWN(1213) : error 029: invalid expression, assumed zero
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\FILTER~1\COS-IV~1.PWN(1213) : fatal error 107: too many error messages on one line

kad dodadem new VehicleInfo[MAX_PLAYERS] IZADZJE NOVI ERRORI
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
if(gPlayerHasCar[playerid] == 1)
{
    new veh, Float:vehx, Float:vehy, Float:vehz;
veh = Vehicle[playerid];
GetVehiclePos(veh, vehx, vehy, vehz);
if(IsPlayerInRangeOfPoint(playerid, 3.0, vehx, vehy, vehz))
{
    if(VehicleInfo[playerid][Locked] == 0)
    {
SetVehicleParamsForPlayer(veh, playerid, 0, 1);
    PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, "~r~Avtomobil zaklucen!", 3000, 3);
VehicleInfo[playerid][Locked] = 1;
gVehLocked[v] = 1;
return 1;
}
if(VehicleInfo[playerid][Locked] == 1)
    {
SetVehicleParamsForPlayer(veh, playerid, 0, 0);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, "~g~Avtomobil otklucen!", 3000, 3);
VehicleInfo[playerid][Locked] = 0;
gVehLocked[v] = 0;
return 1;
}
}
else
{
    SendClientMessage(playerid, 0xAFAFAFAA, ""INFOBOJA"INFO: "BIJELA"Ne ste do vasiot avtomobil.");
    return 1;
    }
}
else
{
    SendClientMessage(playerid, 0xAFAFAFAA, ""INFOBOJA"INFO: "BIJELA"Vie neposeduvate Avtomobil.");
}
return 1;
}
new file[256], name[24];
GetPlayerName(playerid, name, 24);
format(file,sizeof(file),"Cars/%s.ini",name);
    dini_IntSet(file, "Model", VehicleInfo[playerid][Model]);
dini_IntSet(file, "Price", VehicleInfo[playerid][Price]);
dini_FloatSet(file, "X", VehicleInfo[playerid][CarX]);
dini_FloatSet(file, "Y", VehicleInfo[playerid][CarY]);
dini_FloatSet(file, "Z", VehicleInfo[playerid][CarZ]);
dini_FloatSet(file, "Rot", VehicleInfo[playerid][CarRot]);
dini_IntSet(file, "Locked", VehicleInfo[playerid][Locked]);
dini_IntSet(file, "paintjob", VehicleInfo[playerid][paintjob]);
dini_IntSet(file, "color1", VehicleInfo[playerid][colora]);
dini_IntSet(file, "color1", VehicleInfo[playerid][colorb]);
SendClientMessage(playerid, 0xFFFF00FF, ""INFOBOJA"INFO: "BIJELA"Avtomobilot e parkiran. ((Posle GMX Avtomobilot ke e Park tuka)).");
GetVehiclePos(Vehicle[playerid], X, Y, Z);
GetVehicleZAngle(Vehicle[playerid], Rot);
VehicleInfo[playerid][Model] = GetVehicleModel(playerid);
VehicleInfo[playerid][CarX] = X;
VehicleInfo[playerid][CarY] = Y;
VehicleInfo[playerid][CarZ] = Z;
VehicleInfo[playerid][CarRot] = Rot;
return 1;
}
jer neko moze da mi resi ovo  hoceo da napravim car sistem u dialog lock-unlock park locate pa nz sta sam uradio ???

pax95

Pravila: http://balkan-samp.com/forum/index.php?topic=11453.0
Zato LOCK
A sto se tice problema to ti mora biti enumulator kao npr:
enum vehinfo
{
Locked,
//Ostale stvari isto ovde sto trebaju za VehInfo
};
new VehInfo[MAX_PLAYERS][vehinfo];