[Help] GetVehicleComponentType
#7

Quote:

else if(!strcmp(x_imp,"sultan",true))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Sultan [Num(1-14)]");
return 1;
}
new kind = strval(tmp);
if(kind == 1)
comp = 1026;
else if(kind == 2)
comp = 1027;
else if(kind == 3)
comp = 1028;
else if(kind == 4)
comp = 1029;
else if(kind == 5)
comp = 1030;
else if(kind == 6)
comp = 1031;
else if(kind == 7)
comp = 1032;
else if(kind ==
comp = 1033;
else if(kind == 9)
comp = 1138;
else if(kind == 10)
comp = 1139;
else if(kind == 11)
comp = 1140;
else if(kind == 12)
comp = 1141;
else if(kind == 13)
comp = 1169;
else if(kind == 14)
comp = 1170;
else
return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Sultan [Num(1-16)]");
AddVehicleComponent(vehicleid, comp);
SaveComp(comp,GetVehicleComponentType(comp),Vehicl eInfo[vehicleid][vDescription],vehicleid);
format(string, sizeof(string), "* %s improved the vehicle.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}

i need help!!!
Reply


Messages In This Thread
[Help] GetVehicleComponentType - by Jo_123 - 07.02.2010, 13:48
Re: [Help] GetVehicleComponentType - by Finn - 07.02.2010, 14:44
Re: [Help] GetVehicleComponentType - by Jo_123 - 07.02.2010, 17:57
Re: [Help] GetVehicleComponentType - by Rzzr - 07.02.2010, 17:58
Re: [Help] GetVehicleComponentType - by Jo_123 - 07.02.2010, 18:44
Re: [Help] GetVehicleComponentType - by Rzzr - 07.02.2010, 18:53
Re: [Help] GetVehicleComponentType - by Jo_123 - 07.02.2010, 19:01
Re: [Help] GetVehicleComponentType - by WackoX - 07.02.2010, 19:13
Re: [Help] GetVehicleComponentType - by Jo_123 - 07.02.2010, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)