06.07.2009, 11:27
Hi, how can I fix this error?:
Код:
C:\Programme\Rockstar Games\Grand Theft Auto San Andreas\filterscripts\race_1.pwn(100) : error 017: undefined symbol "vehicleid"
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp("/race",cmdtext,true,5)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,YELLOW,"** >> pm Please get out of car before you type /race. You get get a car there.");
}
else
{
if(empty_car==0)
{
car0=CreateVehicle(rcar[random(sizeof(rcar))],1314.9274,-1838.8923,13.1099,359.5720,-1,-1,10);
PutPlayerInVehicle(playerid,car0,0);
AddVehicleComponent(car0,1010);
empty_car=1;
new vehicle;
vehicle=GetVehicleModel(vehicleid);
if(vehicle==558)//Uranus
{
AddVehicleComponent(car0,1088);
AddVehicleComponent(car0,1090);
AddVehicleComponent(car0,1092);
AddVehicleComponent(car0,1094);
AddVehicleComponent(car0,1164);
AddVehicleComponent(car0,1166);
AddVehicleComponent(car0,1168);
}
else if(vehicle==559)//Jester
{
AddVehicleComponent(car0,1065);
AddVehicleComponent(car0,1067);
AddVehicleComponent(car0,1069);
AddVehicleComponent(car0,1071);
AddVehicleComponent(car0,1159);
AddVehicleComponent(car0,1160);
AddVehicleComponent(car0,1162);
}
else if(vehicle==560)//Sultan
{
AddVehicleComponent(car0,1026);
AddVehicleComponent(car0,1027);
AddVehicleComponent(car0,1028);
AddVehicleComponent(car0,1032);
AddVehicleComponent(car0,1138);
AddVehicleComponent(car0,1141);
AddVehicleComponent(car0,1169);
}
else if(vehicle==561)//Stratu
{
AddVehicleComponent(car0,1055);
AddVehicleComponent(car0,1056);
AddVehicleComponent(car0,1058);
AddVehicleComponent(car0,1062);
AddVehicleComponent(car0,1064);
AddVehicleComponent(car0,1154);
AddVehicleComponent(car0,1155);
}
else if(vehicle==562)//Elegy
{
AddVehicleComponent(car0,1034);
AddVehicleComponent(car0,1036);
AddVehicleComponent(car0,1038);
AddVehicleComponent(car0,1040);
AddVehicleComponent(car0,1147);
AddVehicleComponent(car0,1149);
AddVehicleComponent(car0,1171);
}
else if(vehicle==565)//Flash
{
AddVehicleComponent(car0,1046);
AddVehicleComponent(car0,1047);
AddVehicleComponent(car0,1049);
AddVehicleComponent(car0,1051);
AddVehicleComponent(car0,1054);
AddVehicleComponent(car0,1150);
AddVehicleComponent(car0,1153);
}
}
else if(empty_car==1)
{
car1=CreateVehicle(rcar[random(sizeof(rcar))],1309.9681,-1838.6947,13.1099,0.6044,199826,199826,10);
PutPlayerInVehicle(playerid,car1,0);
AddVehicleComponent(car1,1010);
empty_car=2;
}
else if(empty_car==2)
{
car2=CreateVehicle(rcar[random(sizeof(rcar))],1299.7612,-1838.6306,13.1099,359.9296,-1,-1,10);
PutPlayerInVehicle(playerid,car2,0);
AddVehicleComponent(car2,1010);
empty_car=3;
}
else if(empty_car==3)
{
car3=CreateVehicle(rcar[random(sizeof(rcar))],1294.8905,-1838.8063,13.1099,359.7646,-1,-1,10);
PutPlayerInVehicle(playerid,car3,0);
AddVehicleComponent(car3,1010);
empty_car=0;
}
}
return 1;
}
return 0;
}