[Ajuda] Erros
#1

Alguem me ajuda nesses erros?

pawn Код:
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(442) : error 017: undefined symbol "GetName"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(454) : error 017: undefined symbol "convertNumber"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(506) : error 017: undefined symbol "GetName"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(526) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(542) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(561) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(567) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(573) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(579) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(584) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(590) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(595) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(600) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(605) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(611) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(616) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(623) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(628) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(633) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(638) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(643) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(648) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(654) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(659) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(665) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(670) : error 017: undefined symbol "GetNick"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

As funзхes (presumo que sejam funзхes) "GetNick", "GetName" e "convertNumber" nгo estгo definidas, ou seja, nгo existem no seu GameMode, e portanto nгo as pode chamar.
Reply
#3

Posta a linha 442, 454 e 506
Reply
#4

Linha 442:
pawn Код:
format(string, sizeof(string), "/vips/%s.ini", GetName(playerid));
Linha 454:
pawn Код:
format(string, sizeof(string), "Seu vip expira em %s.", convertNumber(PlayerVip[playerid]-gettime()));
Linha 506:
pawn Код:
format(string, sizeof(string), "/vips/%s.ini", GetName(playerid));
Reply
#5

PHP код:
stock GetNick(playerid){
    new 
nome[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnomeMAX_PLAYER_NAME);
    return 
nome;

Reply
#6

Man ja tenho a stock ainda continua
Reply
#7

PHP код:
format(stringsizeof(string), "/vips/%s.ini"GetName(playerid)); 
PHP код:
new aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanamesizeof(aname));
format(stringsizeof(string), "/vips/%s.ini"aname); 
No final do GM coloque:
PHP код:
stock convertNumber(n)
{
    new 
diahrmnsegresto;
    
resto n;
    
seg resto 60;
    
resto /= 60;
    
mn resto 60;
    
resto /= 60;
    
hr resto 24;
    
resto /= 24;
    
dia resto;
    new 
str[50];
    
format(strsizeof(str), "%ddias, %02dh %02dm %02ds"diahrmnseg);
    return 
str;

Reply
#8

Ja tenho essa Stock no final do gm ainda continua os erros olha


pawn Код:
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(443) : error 017: undefined symbol "GetName"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(455) : error 017: undefined symbol "convertNumber"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(507) : error 017: undefined symbol "GetName"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(527) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(543) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(562) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(568) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(574) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(580) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(585) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(591) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(596) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(601) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(606) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(612) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(617) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(624) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(629) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(634) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(639) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(644) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(649) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(655) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(660) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(666) : error 017: undefined symbol "GetNick"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(671) : error 017: undefined symbol "GetNick"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
Reply
#9

Nгo й possнvel, estб compilando a gm correta?
Reply
#10

Olha eu coloquei essa new
pawn Код:
new Vehicle [ MAX_PLAYERS ] ;
quando eu tiro ela fica assim

pawn Код:
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(443) : error 017: undefined symbol "GetName"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(455) : error 017: undefined symbol "convertNumber"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(478) : error 017: undefined symbol "Vehicle"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(478) : warning 215: expression has no effect
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(478) : error 001: expected token: ";", but found "]"
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(478) : error 029: invalid expression, assumed zero
C:\Users\Carlos\Desktop\GM\gamemodes\GM.pwn(478) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)