07.02.2010, 13:48
I have erors
undefined symbol "GetVehicleComponentType"
undefined symbol "GetVehicleComponentType"
Warning: This function was added in SA-MP version 0.3. It is not available in previous versions. |
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; } |