19.02.2012, 00:37
Quote:
pawn Код:
|
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.
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;
}