hy all
vki nem tudja h ez az error mitõl van?
tdhgm.pwn(508) : error 029: invalid expression, assumed zero
Sor:
if(dialogid == car_colors) {
Az egész Dialog:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
new car = GetPlayerVehicleID(playerid);
if(dialogid == car_colors) {
if(response && IsPlayerInAnyVehicle(playerid)) {
if(listitem == 0) // Color Red
{
ChangeVehicleColor(car, 3, 0);
}
if(listitem == 1) // Color Blue
{
ChangeVehicleColor(car, 2, 0);
}
if(listitem == 2) // Color Green
{
ChangeVehicleColor(car, 86, 0);
}
if(listitem == 3) // Color Yellow
{
ChangeVehicleColor(car, 6, 0);
}
if(listitem == 4) // Color White
{
ChangeVehicleColor(car, 1, 0);
}
if(listitem == 5) // Color Black
{
ChangeVehicleColor(car, 0, 0);
}
if(listitem == 6) // Color Purple
{
ChangeVehicleColor(car, 149, 0);
}
if(listitem == 7) // Color Dark Blue
{
ChangeVehicleColor(car, 53, 0);
}
if(listitem == // Color Pink
{
ChangeVehicleColor(car, 126, 0);
}
if(listitem == 9) // Color Grey
{
ChangeVehicleColor(car, 15, 0);
}
}
return 1;
}
return 0;
}