Need Help in 2 Errors REP+
#1

Код:
C:\Users\games\Desktop\final\gamemodes\CiscoRP1.pwn(16792) : error 029: invalid expression, assumed zero
C:\Users\games\Desktop\final\gamemodes\CiscoRP1.pwn(16792) : warning 215: expression has no effect
C:\Users\games\Desktop\final\gamemodes\CiscoRP1.pwn(16792) : error 001: expected token: ";", but found "if"
C:\Users\games\Desktop\final\gamemodes\CiscoRP1.pwn(46729) : warning 203: symbol is never used: "LoopingAnim"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
2 Errors.


pawn Код:
else if (PlayerToPoint(50.0, playerid,198.3160,168.8660,1003.0234) && PlayerInfo[playerid][pMember] == 2)
        tmp = strtok(cmdtext, idx);
                if(!strlen(tmp)) {
                    SendClientMessage(playerid, COLOR_GRAD3, "USAGE: /equip [item number]");
                    SendClientMessage(playerid, COLOR_GREEN, "|_______ FBI Agent Armory _______|");
                    SendClientMessage(playerid, COLOR_GRAD1, "| 1: Intern Surveillance  2: Agent Surveillance");
                    SendClientMessage(playerid, COLOR_GRAD2, "| 3: Surveillance Camera  4: Covert Surveillance");
                    SendClientMessage(playerid, COLOR_GRAD3, "| 5: Standard Tactical    6: Medium Tactical");
                    SendClientMessage(playerid, COLOR_GRAD4, "| 7: Heavy Tactical       8: Sharpshooter Tactical");
                    SendClientMessage(playerid, COLOR_GRAD5, "| 9: Equip Armor+health   10: Night Vision Goggles");
                    SendClientMessage(playerid, COLOR_GRAD5, "| 11: Thermal Goggles     12: Default");
                    return 1;
                }
                new item = strval(tmp);
                if(PlayerInfo[playerid][pRank] < 6&&item!=1&&item!=12&&item!=2&&item!=9&&FBIAllowAll!=1) {
                    SendClientMessage(playerid,COLOR_GRAD3,"SWAT has not been authorized");
                    return 1;
                }
                PlayerInfo[playerid][pMask]=1;
                if (item == 1) {
                    ResetPlayerWeaponsEx(playerid);
                    GivePlayerWeaponEx(playerid, 43, 100);
                    GivePlayerWeaponEx(playerid, 3, 1);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s has suited himself up with the standard intern equipment.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else if (item == 2) {
                    ResetPlayerWeaponsEx(playerid);
                    GivePlayerWeaponEx(playerid, 43, 100);
                    GivePlayerWeaponEx(playerid, 24, 100);
                    GivePlayerWeaponEx(playerid, 3, 1);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s has suited himself up with the standard agent equipment.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else if (item == 3) {
                    ResetPlayerWeaponsEx(playerid);
                    GivePlayerWeaponEx(playerid, 43, 100);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s has taken the instruments needed for being a detective.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else if (item == 4) {
                    ResetPlayerWeaponsEx(playerid);
                    GivePlayerWeaponEx(playerid, 43, 100);
                    GivePlayerWeaponEx(playerid, 4, 1);
                    GivePlayerWeaponEx(playerid, 23, 100);
                    GivePlayerWeaponEx(playerid, 46, 1);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s has taken the equipment needed for covert operations.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else if (item == 5) {
                    ResetPlayerWeaponsEx(playerid);
                    GivePlayerWeaponEx(playerid, 3, 1);
                    GivePlayerWeaponEx(playerid, 24, 400);
                    GivePlayerWeaponEx(playerid, 41, 999);
                    GivePlayerWeaponEx(playerid, 17, 5);
                    GivePlayerWeaponEx(playerid, 29, 600);
                    SetPlayerSkinEx(playerid, 285);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s has put on a tactical uniform and geared up with standard equipment.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else if (item == 6) {
                    ResetPlayerWeaponsEx(playerid);
                    GivePlayerWeaponEx(playerid, 3, 1);
                    GivePlayerWeaponEx(playerid, 24, 400);
                    GivePlayerWeaponEx(playerid, 41, 999);
                    GivePlayerWeaponEx(playerid, 17, 5);
                    GivePlayerWeaponEx(playerid, 31, 600);
                    SetPlayerSkinEx(playerid, 285);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s has put on a tactical uniform and geared up with medium equipment.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else if (item == 7) {
                    ResetPlayerWeaponsEx(playerid);
                    GivePlayerWeaponEx(playerid, 3, 1);
                    GivePlayerWeaponEx(playerid, 24, 400);
                    GivePlayerWeaponEx(playerid, 41, 999);
                    GivePlayerWeaponEx(playerid, 16, 5);
                    GivePlayerWeaponEx(playerid, 27, 100);
                    SetPlayerSkinEx(playerid, 285);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s has put on a tactical uniform and geared up with heavy equipment.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else if (item == 8) {
                    ResetPlayerWeaponsEx(playerid);
                    GivePlayerWeaponEx(playerid, 3, 1);
                    GivePlayerWeaponEx(playerid, 23, 400);
                    GivePlayerWeaponEx(playerid, 34, 50);
                    GivePlayerWeaponEx(playerid, 46, 1);
                    SetPlayerSkinEx(playerid, 285);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s has put on a tactical uniform and geared up with sharpshooter equipment.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else if (item == 9) {
                    SetPlayerArmourEx(playerid, 100);
                    SetPlayerHealthEx(playerid, 100);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s places on a Kevlar vest and eats some donuts.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else if (item == 10) {
                    GivePlayerWeaponEx(playerid, 44, 1);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "* %s has equipped a pair of nightvision goggles.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else if (item == 11) {
                    GivePlayerWeaponEx(playerid, 45, 1);
                    format(string, sizeof(string), "* %s has equipped a pair of thermal goggles.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else if (item == 12) {
                    new originalskin = PlayerInfo[playerid][pModel];
                    SetPlayerSkinEx(playerid, originalskin);
                }
                else {
                    SendClientMessage(playerid, COLOR_GRAD3, " Wrong Number !");
                    return 1;
        }
        else if (PlayerToPoint(50.0, playerid, -1026.6631, -1183.0499, 129.2188) && PlayerInfo[playerid][pMember] == 8) //this is line 16792
        {
Reply
#2

Locate
pawn Код:
new LoopingAnim;
in your script and delete it.Post line 16792
Reply
#3

End your else statement right before it.
Reply
#4

look in pawno code at the nd on right i commented about thatline 16792
Reply
#5

Quote:
Originally Posted by AMEENAMEEN
Посмотреть сообщение
look in pawno code at the nd on right i commented about thatline 16792
Where is it ended ?
Reply
#6


on first post
i need to fix first 3 errors / warnings u can iore the forth one
Reply
#7

Quote:
Originally Posted by AMEENAMEEN
Посмотреть сообщение

on first post
I asked you where does the parenthesis from line 16792 end ?
Reply
#8

Sorry for my last post being incorrect, but if I am not mistaken, I believe the first "else if" statement in your snippet of code isn't started with a "{".
Reply
#9

Quote:
Originally Posted by AustinJ
Посмотреть сообщение
Sorry for my last post being incorrect, but if I am not mistaken, I believe the first "else if" statement in your snippet of code isn't started with a "{".
i added u on msn can u accept me so we can talk on it
Reply
#10

Did you try the thing I just posted, since there isn't a "{" after your first "else if" statement.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)