[Ajuda] Dar nivel de Proc
#7

Quote:
Originally Posted by paulor
Посмотреть сообщение
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerInRangeOfPoint(i, 20, X, Y, Z)) //Local do roubo
    {
        new string[3] = GetPlayerWantedLevel(i);
        SetPlayerWantedLevel(i, string+1);
    }
}
Ae Paulor , deu erro .. :/

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.
o Comando estб assim :
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)) //Local do roubo
    {
        new string[3] = GetPlayerWantedLevel(i);
        SetPlayerWantedLevel(i, string+1);
        SetPlayerWantedLevel(i, string+1);
        PlayerInfo[i][pJailed] = 0;
        PlayerInfo[giveplayerid][pJailTime] = 0;
        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;
    }
P.S: Й um comando para fugir da prisгo kk xD
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: 4 Guest(s)