[Ajuda] Sistema de detetive
#1

Sistema de detetive que procura seguindo dando alguns erros:

Olha o cmd:

pawn Код:
if(strcmp(cmd, "/procurar", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pEmprego] != 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo й Detetive !");
                return 1;
            }
            if(PlayerOnMission[playerid] > 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Vocк estб em uma missгo, nгo pode usar este comando !");
                return 1;
            }
            if(UsedFind[playerid] != 0 && PlayerInfo[playerid][pDetSkill] < 401)
            {
                SendClientMessage(playerid, COLOR_GREY, "   Vocк sу pode procurar novamente, daqui a 2 Minutos !");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /procurar [ id ]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            if(IsPlayerConnected(giveplayerid))
            {
                if(giveplayerid != INVALID_PLAYER_ID)
                {
                    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Vocк nгo pode se procurar!"); return 1; }
                    new points;
                    new level = PlayerInfo[playerid][pDetSkill];
                    if(level >= 0 && level <= 50)
                    { points = 4; }
                    else if(level >= 51 && level <= 100)
                    { points = 6; }
                    else if(level >= 101 && level <= 200)
                    { points = 8; }
                    else if(level >= 201 && level <= 400)
                    { points = 10; }
                    else if(level >= 401)
                    { points = 60; }
                    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                    KillTimer(GetPVarInt(playerid,"TimerProcura"));
                    DisablePlayerCheckpoint(playerid);
                    DeletePVar(playerid,"TimerProcura");
                    new TimerProcura;
                    TimerProcura = SetTimerEx("GivePlayerIDCheckpoint", 1000, true, "di", playerid, giveplayerid);
                    SetPVarInt(playerid,"TimerProcura",TimerProcura);
                    FindTime[playerid] = 1;
                    FindTimePoints[playerid] = points;
                    PlayerInfo[playerid][pDetSkill] ++;
                    UsedFind[playerid] = 1;
                    if(PlayerInfo[playerid][pDetSkill] == 50)
                    { SendClientMessage(playerid, COLOR_YELLOW, "* Seu nivel de detetive agora й 2, Vocк pode procurar mais rapido e encontrar mais rapido."); }
                    else if(PlayerInfo[playerid][pDetSkill] == 100)
                    { SendClientMessage(playerid, COLOR_YELLOW, "* Seu nivel de detetive agora й 3, Vocк pode procurar mais rapido e encontrar mais rapido."); }
                    else if(PlayerInfo[playerid][pDetSkill] == 200)
                    { SendClientMessage(playerid, COLOR_YELLOW, "* Seu nivel de detetive agora й 4, Vocк pode procurar mais rapido e encontrar mais rapido."); }
                    else if(PlayerInfo[playerid][pDetSkill] == 400)
                    { SendClientMessage(playerid, COLOR_YELLOW, "* Seu nivel de detetive agora й 5, Vocк pode procurar mais rapido e encontrar mais rapido."); }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "   Invalido NICK/ID !");
            }
        }
        return 1;
    }
Olha os erros:

pawn Код:
C:\Documents and Settings\Christian temp\Desktop\Gamemods\BHL\gamemodes\BHL.pwn(3444) : warning: 217: loose indentation
C:\Documents and Settings\Christian temp\Desktop\Gamemods\BHL\gamemodes\BHL.pwn(3444) : error: 017: undefined symbol "cmd"
C:\Documents and Settings\Christian temp\Desktop\Gamemods\BHL\gamemodes\BHL.pwn(3444) : error: 017: undefined symbol "PlayerOnMission"
C:\Documents and Settings\Christian temp\Desktop\Gamemods\BHL\gamemodes\BHL.pwn(3444) : warning: 215: expression has no effect
C:\Documents and Settings\Christian temp\Desktop\Gamemods\BHL\gamemodes\BHL.pwn(3444) : error: 001: expected token: ";", but found "]"
C:\Documents and Settings\Christian temp\Desktop\Gamemods\BHL\gamemodes\BHL.pwn(3444) : error: 029: invalid expression, assumed zero
C:\Documents and Settings\Christian temp\Desktop\Gamemods\BHL\gamemodes\BHL.pwn(3444) : error fatal: 107: too many error messages on one line
Alguem sabe resolver ?
Reply


Messages In This Thread
[Ajuda] Sistema de detetive - by Alien_Halls - 06.01.2012, 19:48
Re: [Ajuda] Sistema de detetive - by Hardware - 06.01.2012, 20:42
Respuesta: [Ajuda] Sistema de detetive - by Alien_Halls - 06.01.2012, 21:04
Re: [Ajuda] Sistema de detetive - by Hardware - 06.01.2012, 21:08
Re: [Ajuda] Sistema de detetive - by AdrianO_ - 06.01.2012, 21:11
Respuesta: Re: [Ajuda] Sistema de detetive - by Alien_Halls - 06.01.2012, 21:31
Re: [Ajuda] Sistema de detetive - by felipe_mr - 06.01.2012, 22:25
Respuesta: [Ajuda] Sistema de detetive - by Alien_Halls - 06.01.2012, 22:33
Respuesta: [Ajuda] Sistema de detetive - by Alien_Halls - 07.01.2012, 14:52
Re: [Ajuda] Sistema de detetive - by Ricop522 - 07.01.2012, 15:19

Forum Jump:


Users browsing this thread: 1 Guest(s)