[Ajuda] Dar nivel de Proc
#9

Quote:
Originally Posted by Gustavo_Araujo
Посмотреть сообщение
pawn Код:
new string = GetPlayerWantedLevel(i);
Quote:
Originally Posted by Tiger_xD
Посмотреть сообщение
Tenta pra ver se da certo aii, deixa como tava sem ERRO e troca por isso :


pawn Код:
if(strcmp(cmd, "/fugir", true) == 0)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerInRangeOfPoint(i, 20, 716.8190,-3481.3455,3.8972))
        {
            new string[3] = GetPlayerWantedLevel(i);
            SetPlayerWantedLevel(i, string+1);
            SetPlayerWantedLevel(i, string+1);
            PlayerInfo[i][pJailed] = 0;
            PlayerInfo[giveplayerid][pJailTime] = 0;
            SetPlayerCriminal(playerid,255, "Pega ***** Mlq Pilota");//Pra da nivel de procurado
            GameTextForPlayer(i, "Foi iniciada uma Fuga", 5000, 3);
            format(string, 256, "[Noticia Criminal] %s iniciou uma Fuga de Alcatraz", giveplayer);
            BroadCast(COLOR_OOC,string);
        }
    }
    return 1;
 }


Ajudei ? +Reputa...
Deu erro nos 2
pawn Код:
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp1.pwn(45274) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp1.pwn(45274) : error 008: must be a constant expression; assumed zero
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp1.pwn(45275) : error 033: array must be indexed (variable "string")
C:\Users\Alfredo\Desktop\BPP GM\BVL\gamemodes\BrasilSamp1.pwn(45276) : error 033: array must be indexed (variable "string")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Reply


Messages In This Thread
[Ajuda] Dar nivel de Proc - by Felipe_Freeze - 18.02.2012, 22:52
Re: [Ajuda] Dar nivel de Proc - by Dolby - 18.02.2012, 23:11
Re: [Ajuda] Dar nivel de Proc - by Ricop522 - 18.02.2012, 23:21
Re: [Ajuda] Dar nivel de Proc - by paulor - 18.02.2012, 23:47
Re: [Ajuda] Dar nivel de Proc - by Dolby - 19.02.2012, 00:22
Re: [Ajuda] Dar nivel de Proc - by paulor - 19.02.2012, 00:27
Re: [Ajuda] Dar nivel de Proc - by Felipe_Freeze - 19.02.2012, 00:37
Re: [Ajuda] Dar nivel de Proc - by Tiger_xD - 19.02.2012, 00:48
Re: [Ajuda] Dar nivel de Proc - by Felipe_Freeze - 19.02.2012, 01:38
Re: [Ajuda] Dar nivel de Proc - by Tiger_xD - 19.02.2012, 01:56

Forum Jump:


Users browsing this thread: 3 Guest(s)