[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
#2

Define йla new PlayerName[MAX_PLAYER_NAME];
Reply
#3

pawn Код:
stock PlayerName(playerid)
{
new PlayerNameLevel[24];
GetPlayerName(playerid, PlayerNameLevel, 24);
return PlayerNameLevel;
}
A Variavel "Level" Jб estб definida no GameMode, e troque essa Stock.

Quote:
Originally Posted by matheus_alcapone
Посмотреть сообщение
Define йla new PlayerName[MAX_PLAYERS_NAME];

Ajudei? ++repu
MAX_PLAYERS_NAME nгo vai Funcionar, o Correto й MAX_PLAYER_NAME, mesmo assim o uso de "Numero" acho mais Facil.
Reply
#4

A galera pensa que reputaзгo й dinheiro '-'
Reply
#5

Nгo entendi nada, expliquem melhor por favor!
Reply
#6

tava sу brincado edu


@EDIT
Errei funeral. Agora na duvida do carinha que mora logo ali define essa variavel new PlayerName[MAX_PLAYER_NAME]; pode se no topo do gm ou na stock
Reply
#7

Quote:
Originally Posted by matheus_alcapone
Посмотреть сообщение
Define йla new PlayerName[MAX_PLAYERS_NAME];

Ajudei? ++repu
Quote:
Originally Posted by Arthenry
Посмотреть сообщение
Nгo entendi nada, expliquem melhor por favor!
Troca sua "Stock" pela minha que eu postei, e a Variбvel "Level" Vocк troca o nome ou deleta ela , porque jб estб Definido no GameMode.
Reply
#8

O Sr. vai querer quantas prostitutas pra hoje a noite
pawn Код:
stock nomemeu(playerid)
{
new oi[24];
GetPlayerName(playerid, oi, 24);
return oi;
}
Reply
#9

dPlayer que atitude legal.
Reply
#10

aINDA Nгo consegui entender por favor me ajudem!
E continua dando error!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)