[Ajuda] erro ao compilar
#1

Usando esse sistema:
https://sampforum.blast.hk/showthread.php?tid=151296

Deu esses erros:

pawn Код:
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(38124) : warning 219: local variable "Level" shadows a variable at a preceding level
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(50818) : error 021: symbol already defined: "PlayerName"
C:\Documents and Settings\Vinнcius\Desktop\New Virtual City\gamemodes\NVC.pwn(50821) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Linhas dos erros 50818 e 50821:

pawn Код:
stock PlayerName(playerid)
{
new PlayerNameLevel[MAX_PLAYERS];
GetPlayerName(playerid, PlayerNameLevel, MAX_PLAYERS);
return PlayerNameLevel;
}
Linha do warning 38124:

pawn Код:
new Caught;
                new rand;
                new fstring[MAX_PLAYER_NAME];
                new Level = PlayerInfo[playerid][pFishSkill];
                if(Level >= 0 && Level <= 50) { Caught = random(20)-7; }
                else if(Level >= 51 && Level <= 100) { Caught = random(50)-20; }
                else if(Level >= 101 && Level <= 200) { Caught = random(100)-50; }
                else if(Level >= 201 && Level <= 400) { Caught = random(160)-60; }
                else if(Level >= 401) { Caught = random(180)-70; }
                rand = random(FishNamesNumber);
                if(Caught <= 0)
Reply


Messages In This Thread
erro ao compilar - by Arthenry - 05.07.2012, 14:47
AW: erro ao compilar - by MatheusAlcapone - 05.07.2012, 14:49
Re: erro ao compilar - by .FuneraL. - 05.07.2012, 14:49
Re: erro ao compilar - by Edu33 - 05.07.2012, 14:53
Re: erro ao compilar - by Arthenry - 05.07.2012, 14:54
AW: erro ao compilar - by MatheusAlcapone - 05.07.2012, 14:55
Re: erro ao compilar - by .FuneraL. - 05.07.2012, 14:56
Re: erro ao compilar - by dPlaYer_ - 05.07.2012, 14:56
AW: erro ao compilar - by MatheusAlcapone - 05.07.2012, 14:59
Re: erro ao compilar - by Arthenry - 05.07.2012, 15:01

Forum Jump:


Users browsing this thread: 2 Guest(s)