05.07.2012, 14:47
Usando esse sistema:
https://sampforum.blast.hk/showthread.php?tid=151296
Deu esses erros:
Linhas dos erros 50818 e 50821:
Linha do warning 38124:
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.
pawn Код:
stock PlayerName(playerid)
{
new PlayerNameLevel[MAX_PLAYERS];
GetPlayerName(playerid, PlayerNameLevel, MAX_PLAYERS);
return PlayerNameLevel;
}
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)