Errors
#1

How to fix this errors
please help me

Code:

Код:
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92705) : error 017: undefined symbol "SaveComp"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92750) : error 017: undefined symbol "SaveComp"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92795) : error 017: undefined symbol "SaveComp"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92840) : error 017: undefined symbol "SaveComp"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92885) : error 017: undefined symbol "SaveComp"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92930) : error 017: undefined symbol "SaveComp"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92967) : error 017: undefined symbol "SaveComp"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92999) : error 017: undefined symbol "vPaintJob"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(93001) : error 017: undefined symbol "vColorOne"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(93002) : error 017: undefined symbol "vColorTwo"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(93022) : error 017: undefined symbol "vPaintJob"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(93045) : error 017: undefined symbol "SaveComp"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(93053) : error 017: undefined symbol "SaveComp"
My pwn code of the lines

pawn Код:
//---------------------------------------------------------[GARAGE MAN]---------------------------//
    if(!strcmp(cmd,"/improve",true))
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pLeader] != 17 && PlayerInfo[playerid][pMember] != 17)
                return SendClientMessage(playerid, COLOR_GREY, "    You are not a garage man!");
            if(!PlayerToPoint(60, playerid,2507.0688,-1468.1251,24.0368))
                return SendClientMessage(playerid, COLOR_GREY, "    You are too far from the garage!");
            new comp=0;
            new vehicleid = IsPlayerNearAVehicle(playerid, 4.0);
            if(vehicleid == INVALID_VEHICLE_ID)
                return SendClientMessage(playerid, COLOR_GREY, "   You aren`t near any vehicle");
            new x_imp[256];
            x_imp = strtok(cmdtext, idx);
            if(!strlen(x_imp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "USAGE: /improve [Type]");
                SendClientMessage(playerid, COLOR_WHITE, "for help use /improve help");
                return 1;
            }
            if(!strcmp(x_imp,"help",true))
            {
                SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
                SendClientMessage(playerid, COLOR_GRAD3,"** Improve help ** Colors,Wheels,Nitro,PaintJob,Repair,Hydraulics");
                SendClientMessage(playerid, COLOR_GRAD3,"** Improve help ** Sultan,Elegy,Uranus,Flash,Jester,Savanna");
                SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
                return 1;
            }
            else if(!strcmp(x_imp,"repair",true))
            {
                SetVehicleHealth(vehicleid, 1000.0);
                format(string, sizeof(string), "* %s repairs the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            }
            else if(!strcmp(x_imp,"wheels",true))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Wheels [Num(1-16)]");
                    return 1;
                }
                new kind = strval(tmp);
                if(kind == 1)
                    comp = 1073;
                else if(kind == 2)
                    comp = 1074;
                else if(kind == 3)
                    comp = 1075;
                else if(kind == 4)
                    comp = 1076;
                else if(kind == 5)
                    comp = 1077;
                else if(kind == 6)
                    comp = 1078;
                else if(kind == 7)
                    comp = 1079;
                else if(kind == 8)
                    comp = 1080;
                else if(kind == 9)
                    comp = 1081;
                else if(kind == 10)
                    comp = 1082;
                else if(kind == 11)
                    comp = 1083;
                else if(kind == 12)
                    comp = 1084;
                else if(kind == 13)
                    comp = 1085;
                else if(kind == 14)
                    comp = 1096;
                else if(kind == 15)
                    comp = 1097;
                else if(kind == 16)
                    comp = 1098;
                else
                    return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Wheels [Num(1-16)]");
                AddVehicleComponent(vehicleid, comp);
                SaveComp(comp,GetVehicleComponentType(comp),VehicleInfo[vehicleid][vDescription],vehicleid);
                format(string, sizeof(string), "* %s improved the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }
            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 == 8)
                    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),VehicleInfo[vehicleid][vDescription],vehicleid);
                format(string, sizeof(string), "* %s improved the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }
            else if(!strcmp(x_imp,"elegy",true))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Elegy [Num(1-14)]");
                    return 1;
                }
                new kind = strval(tmp);
                if(kind == 1)
                    comp = 1034;
                else if(kind == 2)
                    comp = 1035;
                else if(kind == 3)
                    comp = 1036;
                else if(kind == 4)
                    comp = 1037;
                else if(kind == 5)
                    comp = 1038;
                else if(kind == 6)
                    comp = 1039;
                else if(kind == 7)
                    comp = 1040;
                else if(kind == 8)
                    comp = 1041;
                else if(kind == 9)
                    comp = 1146;
                else if(kind == 10)
                    comp = 1147;
                else if(kind == 11)
                    comp = 1148;
                else if(kind == 12)
                    comp = 1149;
                else if(kind == 13)
                    comp = 1171;
                else if(kind == 14)
                    comp = 1172;
                else
                    return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Elegy [Num(1-16)]");
                AddVehicleComponent(vehicleid, comp);
                SaveComp(comp,GetVehicleComponentType(comp),VehicleInfo[vehicleid][vDescription],vehicleid);
                format(string, sizeof(string), "* %s improved the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }
            else if(!strcmp(x_imp,"flash",true))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Flash [Num(1-14)]");
                    return 1;
                }
                new kind = strval(tmp);
                if(kind == 1)
                    comp = 1046;
                else if(kind == 2)
                    comp = 1047;
                else if(kind == 3)
                    comp = 1048;
                else if(kind == 4)
                    comp = 1049;
                else if(kind == 5)
                    comp = 1050;
                else if(kind == 6)
                    comp = 1051;
                else if(kind == 7)
                    comp = 1052;
                else if(kind == 8)
                    comp = 1053;
                else if(kind == 9)
                    comp = 1054;
                else if(kind == 10)
                    comp = 1055;
                else if(kind == 11)
                    comp = 1151;
                else if(kind == 12)
                    comp = 1152;
                else if(kind == 13)
                    comp = 1153;
                else if(kind == 14)
                    comp = 1154;
                else
                    return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Flash [Num(1-16)]");
                AddVehicleComponent(vehicleid, comp);
                SaveComp(comp,GetVehicleComponentType(comp),VehicleInfo[vehicleid][vDescription],vehicleid);
                format(string, sizeof(string), "* %s improved the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }
            else if(!strcmp(x_imp,"jester",true))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Jester [Num(1-14)]");
                    return 1;
                }
                new kind = strval(tmp);
                if(kind == 1)
                    comp = 1066;
                else if(kind == 2)
                    comp = 1067;
                else if(kind == 3)
                    comp = 1068;
                else if(kind == 4)
                    comp = 1069;
                else if(kind == 5)
                    comp = 1070;
                else if(kind == 6)
                    comp = 1071;
                else if(kind == 7)
                    comp = 1072;
                else if(kind == 8)
                    comp = 1073;
                else if(kind == 9)
                    comp = 1159;
                else if(kind == 10)
                    comp = 1160;
                else if(kind == 11)
                    comp = 1161;
                else if(kind == 12)
                    comp = 1162;
                else if(kind == 13)
                    comp = 1163;
                else if(kind == 14)
                    comp = 1174;
                else
                    return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Jester [Num(1-16)]");
                AddVehicleComponent(vehicleid, comp);
                SaveComp(comp,GetVehicleComponentType(comp),VehicleInfo[vehicleid][vDescription],vehicleid);
                format(string, sizeof(string), "* %s improved the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }
            else if(!strcmp(x_imp,"uranus",true))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Uranus [Num(1-14)]");
                    return 1;
                }
                new kind = strval(tmp);
                if(kind == 1)
                    comp = 1089;
                else if(kind == 2)
                    comp = 1090;
                else if(kind == 3)
                    comp = 1091;
                else if(kind == 4)
                    comp = 1092;
                else if(kind == 5)
                    comp = 1093;
                else if(kind == 6)
                    comp = 1094;
                else if(kind == 7)
                    comp = 1095;
                else if(kind == 8)
                    comp = 1096;
                else if(kind == 9)
                    comp = 1164;
                else if(kind == 10)
                    comp = 1165;
                else if(kind == 11)
                    comp = 1166;
                else if(kind == 12)
                    comp = 1167;
                else if(kind == 13)
                    comp = 1168;
                else if(kind == 14)
                    comp = 1169;
                else
                    return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Uranus [Num(1-16)]");
                AddVehicleComponent(vehicleid, comp);
                SaveComp(comp,GetVehicleComponentType(comp),VehicleInfo[vehicleid][vDescription],vehicleid);
                format(string, sizeof(string), "* %s improved the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }
            else if(!strcmp(x_imp,"savanna",true))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Savanna [Num(1-14)]");
                    return 1;
                }
                new kind = strval(tmp);
                if(kind == 1)
                    comp = 1102;
                else if(kind == 2)
                    comp = 1129;
                else if(kind == 3)
                    comp = 1130;
                else if(kind == 4)
                    comp = 1131;
                else if(kind == 5)
                    comp = 1132;
                else if(kind == 6)
                    comp = 1133;
                else if(kind == 7)
                    comp = 1186;
                else if(kind == 8)
                    comp = 1187;
                else if(kind == 9)
                    comp = 1188;
                else if(kind == 10)
                    comp = 1189;
                else
                    return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Savanna [Num(1-16)]");
                AddVehicleComponent(vehicleid, comp);
                SaveComp(comp,GetVehicleComponentType(comp),VehicleInfo[vehicleid][vDescription],vehicleid);
                format(string, sizeof(string), "* %s improved the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }
            else if(!strcmp(x_imp,"colors",true))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GREY, ">> Please add color1 and color2 (0-126)!");
                    return 1;
                }
                new color1 = strval(tmp);
                if(color1 < 0 && color1 > 126)
                {
                    SendClientMessage(playerid, COLOR_GREY, ">> Please add color1 and color2 (0-126)!");
                    return 1;
                }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GREY, ">> Please add color1 and color2 (0-126)!");
                    return 1;
                }
                new color2 = strval(tmp);
                if(color2 < 0 && color2 > 126)
                {
                    SendClientMessage(playerid, COLOR_GREY, ">> Please add color1 and color2 (0-126)!");
                    return 1;
                }
                ChangeVehiclePaintjob(vehicleid,3);
                VehicleInfo[vehicleid][vPaintJob] = 3;
                ChangeVehicleColor(vehicleid, color1, color2);
                VehicleInfo[vehicleid][vColorOne] = color1;
                VehicleInfo[vehicleid][vColorTwo] = color2;
                format(string, sizeof(string), "* %s sprays the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }
            else if(!strcmp(x_imp,"paintjob",true))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GREY, ">> Please choose paintjob 0-2 ,3 to remove!");
                    return 1;
                }
                new paint = strval(tmp);
                if(paint < 0 && paint > 3)
                {
                    SendClientMessage(playerid, COLOR_GREY, ">> Please choose paintjob 1-2 ,0 to remove!");
                    return 1;
                }
                ChangeVehiclePaintjob(vehicleid,paint);
                VehicleInfo[vehicleid][vPaintJob] = paint;
                format(string, sizeof(string), "* %s sprays the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }
            else if(!strcmp(x_imp,"nitro",true))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve nirto [Num(1-3)]");
                    return 1;
                }
                new kind = strval(tmp);
                if(kind == 1)
                    comp = 1009;
                else if(kind == 2)
                    comp = 1008;
                else if(kind == 3)
                    comp = 1010;
                else
                    return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /Improve Wheels [Num(1-16)]");
                AddVehicleComponent(vehicleid, comp);
                SaveComp(comp,GetVehicleComponentType(comp),VehicleInfo[vehicleid][vDescription],vehicleid);
                format(string, sizeof(string), "* %s improved the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }
            else if(!strcmp(x_imp,"hydraulics",true))
            {
                AddVehicleComponent(vehicleid, 1087);
                SaveComp(1087,GetVehicleComponentType(1087),VehicleInfo[vehicleid][vDescription],vehicleid);
                format(string, sizeof(string), "* %s improved the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                return 1;
            }//Hydraulics
        }
    }
        if(strcmp(cmd, "/sultan", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /sultan [Shipor number]");
                    return 1;
                }
                new vehicleid = IsPlayerNearAVehicle(playerid, 4.0);
                format(string, sizeof(string), "* %s improved the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                new color;
                new Garagecolor;
                Garagecolor = strval(tmp);
                if(Garagecolor==1) color = 1026;
                if(Garagecolor==2) color = 1027;
                if(Garagecolor==3) color = 1028;
                if(Garagecolor==4) color = 1029;
                if(Garagecolor==5) color = 1030;
                if(Garagecolor==6) color = 1031;
                if(Garagecolor==7) color = 1032;
                if(Garagecolor==8) color = 1033;
                if(Garagecolor==9) color = 1138;
                if(Garagecolor==10) color = 1139;
                if(Garagecolor==11) color = 1140;
                if(Garagecolor==12) color = 1141;
                if(Garagecolor==13) color = 1169;
                if(Garagecolor==14) color = 1170;
                if(Garagecolor==15) color = 1087;
                if(Garagecolor==16) color = 1010;
                if(Garagecolor==17) color = 1073;
                if(Garagecolor==18) color = 1074;
                if(Garagecolor==19) color = 1075;
                if(Garagecolor==20) color = 1076;
                if(Garagecolor==21) color = 1077;
                if(Garagecolor==22) color = 1078;
                if(Garagecolor==23) color = 1079;
                if(Garagecolor==24) color = 1080;
                if(Garagecolor==25) color = 1081;
                if(Garagecolor==26) color = 1082;
                if(Garagecolor==27) color = 1083;
                if(Garagecolor==28) color = 1084;
                if(Garagecolor==29) color = 1085;
                AddVehicleComponent(vehicleid, color);
            }
            return 1;
        }
        return 1;
    }
        if(strcmp(cmd, "/Savanna", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /Savanna [Shipor number]");
                    return 1;
                }
                new vehicleid = IsPlayerNearAVehicle(playerid, 4.0);
                format(string, sizeof(string), "* %s improved the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                new color;
                new Garagecolor;
                Garagecolor = strval(tmp);
                if(Garagecolor==1) color = 1102;
                if(Garagecolor==2) color = 1129;
                if(Garagecolor==3) color = 1130;
                if(Garagecolor==4) color = 1131;
                if(Garagecolor==5) color = 1132;
                if(Garagecolor==6) color = 1133;
                if(Garagecolor==7) color = 1186;
                if(Garagecolor==8) color = 1187;
                if(Garagecolor==9) color = 1188;
                if(Garagecolor==10) color = 1189;
                if(Garagecolor==11) color = 1010;
                if(Garagecolor==12) color = 1073;
                if(Garagecolor==13) color = 1074;
                if(Garagecolor==14) color = 1075;
                if(Garagecolor==15) color = 1010;
                if(Garagecolor==16) color = 1087;
                if(Garagecolor==17) color = 1078;
                if(Garagecolor==18) color = 1079;
                if(Garagecolor==19) color = 1080;
                if(Garagecolor==20) color = 1081;
                if(Garagecolor==21) color = 1082;
                if(Garagecolor==22) color = 1083;
                if(Garagecolor==23) color = 1084;
                if(Garagecolor==24) color = 1085;
                AddVehicleComponent(vehicleid, color);
            }
            return 1;
        }
        return 1;
    }
    if(strcmp(cmd, "/Flash", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /Flash [Shipor number]");
                    return 1;
                }
                new vehicleid = IsPlayerNearAVehicle(playerid, 4.0);
                format(string, sizeof(string), "* %s improved the vehicle.", sendername);
                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                new color;
                new Garagecolor;
                Garagecolor = strval(tmp);
                if(Garagecolor==1) color = 1045;
                if(Garagecolor==2) color = 1046;
                if(Garagecolor==3) color = 1047;
                if(Garagecolor==4) color = 1048;
                if(Garagecolor==5) color = 1049;
                if(Garagecolor==6) color = 1050;
                if(Garagecolor==7) color = 1051;
                if(Garagecolor==8) color = 1052;
                if(Garagecolor==9) color = 1053;
                if(Garagecolor==10) color = 1054;
                if(Garagecolor==11) color = 1150;
                if(Garagecolor==12) color = 1151;
                if(Garagecolor==13) color = 1152;
                if(Garagecolor==14) color = 1153;
                if(Garagecolor==15) color = 1010;
                if(Garagecolor==16) color = 1087;
                if(Garagecolor==17) color = 1078;
                if(Garagecolor==18) color = 1079;
                if(Garagecolor==19) color = 1080;
                if(Garagecolor==20) color = 1081;
                if(Garagecolor==21) color = 1082;
                if(Garagecolor==22) color = 1083;
                if(Garagecolor==23) color = 1084;
                if(Garagecolor==24) color = 1085;
                AddVehicleComponent(vehicleid, color);
            }
            return 1;
        }
        return 1;
    }
    //------------------------------------------[GARAGE MAN]---------------------------------------//
pawn Код:
stock IsAGarageman(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        new type = FactionInfo[PlayerInfo[playerid][pMember]][FactionType];
        if(type == 17) return 1;
    }
    return 0;
}
Reply
#2

Add these on top :-
pawn Код:
new SaveComp;
new vPaintJob;
new vColorOne;
new vColorTwo;
Reply
#3

Undefined symbol means that the variable or function between the quotation marks is not declared. Take each error, get the function or variable name and declare it. For example, it says:
Quote:

error 017: undefined symbol "vPaintJob"

Look for the VehicleInfo enum and add vPaintJob to that list. An enum looks like this:
pawn Код:
enum vehData
{
    vehId,
    vehColor,
    vehLock,
    //etc. Here, at the end of the list, you have to add vPaintJob and anything else starting with "v" that is listed in your errors
};

new VehicleInfo[MAX_CARS][vehData];
SaveComp for example is another story. That is a function, not a variable, so just saying "new SaveComp;" won't work. You need to make it a public function or a stock function.
pawn Код:
//this one goes on top of your script
forward SaveComp(list of parameters);
//this one goes somewhere in the script
public SaveComp(same list of parameters)
{
    //your code here
    return 1;
}

//or the "stock" version. This should go at the end of your script
stock SaveComp(list of parameters)
{
    //your code here
}
Reply
#4

Quote:
Originally Posted by Phyzic
Посмотреть сообщение
Add these on top :-
pawn Код:
new SaveComp;
new vPaintJob;
new vColorOne;
new vColorTwo;
I added what you said thats make me this now

Код:
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(229) : warning 201: redefinition of constant/macro (symbol "MAX_ROADBLOCKS")
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(29061) : warning 206: redundant test: constant expression is non-zero
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(56680) : warning 213: tag mismatch
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92710) : error 012: invalid function call, not a valid address
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92710) : warning 215: expression has no effect
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92710) : error 017: undefined symbol "vDescription"
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92710) : error 029: invalid expression, assumed zero
C:\Users\shalev\Desktop\ъйчйд згщд (2)\Reality Style RP\gamemodes\RSRP.pwn(92710) : fatal error 107: too many error messages on one line
Quote:
Originally Posted by HazardouS
Посмотреть сообщение
Undefined symbol means that the variable or function between the quotation marks is not declared. Take each error, get the function or variable name and declare it. For example, it says:

Look for the VehicleInfo enum and add vPaintJob to that list.
I dont got the line enum Vehicleinfo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)