Need help with these errors
#9

Quick Spot check fixes..

pawn Код:
// Line 601-610
public OnPlayerText(playerid, text[])
{
    new sendername[MAX_PLAYER_NAME];
    new string[256];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "%s says: %s", sendername, text);
    ProxDetector(20.0, playerid, string,COLOR_GREY);
    return 0;
}
You had an extra } in this section.

pawn Код:
COMMAND:uncuff(playerid, params[])
 {
    if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
    {
        new id;
        if(sscanf(params, "u", id))
        {
            if(IsPlayerConnected(id))
            {
                new string[64];
                new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
                GetPlayerName(playerid, name, sizeof(name));
                GetPlayerName(id, PlayerName, sizeof(PlayerName));
                format(string, sizeof(string), "You have been uncuffed by %s", name);
                SendClientMessage(id, 0x0259EAAA, string);
                format(string, sizeof(string), "%s has grabbed a key and unlocks the handcuffs that are on %s", name, PlayerName);
                TogglePlayerControllable(id, 0);
                Suspect[playerid][CUFF] = 1;
                ProxDetector(10.0, playerid, string, COLOR_PURPLE);
            }
            return 1;
        }
    }
}
1 short here.

pawn Код:
COMMAND:cuff(playerid, params[])
 {
    if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
    {
        new id;
        if(sscanf(params, "u", id))
        {
            if(IsPlayerConnected(id))
            {
                new string[64];
                new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
                GetPlayerName(playerid, name, sizeof(name));
                GetPlayerName(id, PlayerName, sizeof(PlayerName));
                format(string, sizeof(string), "You have been cuffed by %s", name);
                SendClientMessage(id, 0x0259EAAA, string);
                format(string, sizeof(string), "%s has grabbed his cuffs and put them on %s", name, PlayerName);
                TogglePlayerControllable(id, 0);
                Suspect[playerid][CUFF] = 1;
                ProxDetector(10.0, playerid, string, COLOR_PURPLE);
            }
            return 1;
        }
    }
}
Here too.

And...
pawn Код:
COMMAND:tazer(playerid, params[])
 {
    if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
    {
        new id;
        if(sscanf(params, "u", id))
        {
            if(IsPlayerConnected(id))
            {
                new string[64];
                new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
                GetPlayerName(playerid, name, sizeof(name));
                GetPlayerName(id, PlayerName, sizeof(PlayerName));
                format(string, sizeof(string), "%s has unholster his tazer", name);
                SendClientMessage(id, 0xFFFF00AA, string);
                format(string, sizeof(string), "%s has holster his Desert Eagle and unholsters his/her tazer", name);
                LAW[playerid][TAZE] = 1;
                ProxDetector(10.0, playerid, string, COLOR_PURPLE);
            }
            return 1;
        }
    }
}
       
COMMAND:taze(playerid, params[])
{
    if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
    {
        new id;
        if(sscanf(params, "u", id))
        {
            if(IsPlayerConnected(id))
            {
                new string[64];
                new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
                GetPlayerName(playerid, name, sizeof(name));
                GetPlayerName(id, PlayerName, sizeof(PlayerName));
                format(string, sizeof(string), "You have been tazed by %s", name);
                SendClientMessage(id, 0x0259EAAA, string);
                format(string, sizeof(string), "%s has succesfully tazed %s", name, PlayerName);
                TogglePlayerControllable(id, 0);
                Suspect[playerid][TAZE] = 1;
                ProxDetector(10.0, playerid, string, COLOR_PURPLE);
            }
            return 1;
        }
    }
}
               
COMMAND:untaze(playerid, params[])
{
    if(Cop[playerid][COPDUTY] == 1 && FBI[playerid][FBIDUTY] == 1)
    {
        new id;
        if(sscanf(params, "u", id))
        {
            if(IsPlayerConnected(id))
            {
                new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
                GetPlayerName(playerid, name, sizeof(name));
                GetPlayerName(id, PlayerName, sizeof(PlayerName));
                TogglePlayerControllable(id, 1);
                Suspect[playerid][TAZE] = 0;
                return 1;
            }
        }
    }
}
6 between these 3 functions as well. For each opening bracket, there must be a closing bracket.
Reply


Messages In This Thread
Need help with these errors - by Swyft™ - 27.10.2011, 02:49
Re: Need help with these errors - by MP2 - 27.10.2011, 02:54
Re: Need help with these errors - by Swyft™ - 27.10.2011, 02:58
Re: Need help with these errors - by =WoR=Varth - 27.10.2011, 03:39
Re: Need help with these errors - by Swyft™ - 27.10.2011, 04:06
Re: Need help with these errors - by =WoR=Varth - 27.10.2011, 04:43
Re: Need help with these errors - by Swyft™ - 27.10.2011, 05:55
Re: Need help with these errors - by =WoR=Varth - 27.10.2011, 05:57
Re: Need help with these errors - by Pghpunkid - 27.10.2011, 05:59
Re: Need help with these errors - by Swyft™ - 27.10.2011, 06:11

Forum Jump:


Users browsing this thread: 1 Guest(s)