[Ajuda] /vips bugado ajuda ae
#1

http://i.imgur.com/cfMbsuw.png

C:\Projeto (CLS)\filterscripts\vipsystem.pwn(333) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

PHP Code:
CMD:vips(playerid)  
{  
    new 
string[90]; 
    
SendClientMessage(playerid0xADFF2FFF"Todos os Vips online");  
    new 
count0;  
    for(new 
MAX_PLAYERS+1i++)  
    {  
        if(
IsPlayerConnected(i))  
        {  
            if(
Logado[playerid] == true)  
            {  
                if(
IsPlayervip)  
                {  
                    
format(string,90,"Vip: %s",Nome(i)); 
                    
SendClientMessage(playerid, -1string);  
                    
count++;  
                }  
            }  
        }  
    }  
    if(
count == 0) return SendClientMessage(playeridCOR_BRANCO"Nгo tem nem um player vip online no momento.");  
    return 
1;  

Reply
#2

Code:
CMD:vips(playerid)  
{  
    new string[90]; 
    SendClientMessage(playerid, 0xADFF2FFF, "Todos os Vips online");  
    new count= 0;  
    for(new i = 0 ; i < MAX_PLAYERS+1; i++)  
    {  
        if(IsPlayerConnected(i))  
        {  
            if(Logado[playerid] == true)  
            {  
                if(IsPlayervip)  
                {  
                    format(string,90,"Vip: %s",Nome(i)); 
                    SendClientMessage(playerid, -1, string);  
                    count++;  
                }  
            }  
        }  
    }  
    if(count == 0) return SendClientMessage(playerid, COR_BRANCO, "Nгo tem nem um player vip online no momento.");  
    return 1;  
}
if(IsPlayervip) deve ser:

PHP Code:
if(IsPlayervip(i)) 
Reply
#3

C:\Projeto (CLS)\filterscripts\vipsystem.pwn(332) : warning 213: tag mismatch
C:\Projeto (CLS)\filterscripts\vipsystem.pwn(334) : error 017: undefined symbol "IsPlayervip"
C:\Projeto (CLS)\filterscripts\vipsystem.pwn(632) : error 017: undefined symbol "namez"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#4

PHP Code:
CMD:vips(playerid)   
{   
    new 
string[90];  
    
SendClientMessage(playerid0xADFF2FFF"Todos os Vips online");   
    new 
count0;   
    for(new 
iMAX_PLAYERS+1i++)   
    {   
        if(
IsPlayerConnected(i))   
        {   
            if(
Logado[playerid] == true)   
            {   
                if(
IsPlayerVip(i))   
                {   
                    
format(string,90,"Vip: %s"Nome(i));  
                    
SendClientMessage(playerid, -1string);   
                    
count++;   
                }   
            }   
        }   
    }   
    if(
count == 0) return SendClientMessage(playeridCOR_BRANCO"Nгo tem nem um player vip online no momento.");   
    return 
1;   

Reply
#5

E outra coisa. Vocк estб verificando se vocк mesmo estб logado, e nгo os outros jogadores:

if(Logado[playerid] == true)
Reply
#6

ai deu isso

C:\Projeto (CLS)\filterscripts\vipsystem.pwn(332) : warning 213: tag mismatch
C:\Projeto (CLS)\filterscripts\vipsystem.pwn(334) : error 017: undefined symbol "IsPlayerVip"
C:\Projeto (CLS)\filterscripts\vipsystem.pwn(632) : error 017: undefined symbol "namez"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#7

Meu amigo, entгo IsPlayerVip Nгo й sua vбriavel.. '-'
Reply
#8

й sim todos os comandos vips tem essa variavel que ta no comando

CMD:infovip(playerid)
{
if ( !IsPlayerVIP(playerid)) return SendClientMessage(playerid, Default, "{EFFF00} | INFO | Vocк nгo й vip.");
new Str[1028]; format ( Str, sizeof Str, "{FFFFFF}Confira aqui comandos e status do seu VIP.\n\nSeu VIP expira em: %d dias.\n\n {95FA56}--> Comandos Vips <--\n\n /nitrov.\n /vidav.\n /coletev. ", GetExpirationDays(playerid));
ShowPlayerDialog(playerid, 775+1, DIALOG_STYLE_MSGBOX, "{09BFA3}Informaзхes do VIP", Str, "Sair", "");
return 1;
}
Reply
#9

pawn Code:
CMD:vips(playerid)
{
    new string[90];
    SendClientMessage(playerid, 0xADFF2FFF, "Todos os Vips online");
    new count= 0;
    for(new i; i < MAX_PLAYERS+1; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Logado[playerid] == true)
            {
                if(IsPlayerVIP(i))
                {
                    format(string,90,"Vip: %s", Nome(i));
                    SendClientMessage(playerid, -1, string);
                    count++;
                }
            }
        }
    }
    if(count == 0) return SendClientMessage(playerid, COR_BRANCO, "Nгo tem nem um player vip online no momento.");
    return 1;
}
Reply
#10

й IsPlayerVIP nгo IsPlayervip, '-' serio q n percebeu isso?

PHP Code:
CMD:vips(playerid)   
{   
    new 
string[90];  
    
SendClientMessage(playerid0xADFF2FFF"Todos os Vips online");   
    new 
count0;   
    for(new 
iMAX_PLAYERS+1i++)   
    {   
        if(
IsPlayerConnected(i))   
        {   
            if(
Logado[playerid] == true)   
            {   
                if(
IsPlayerVIP(i))   
                {   
                    
format(string,90,"Vip: %s"Nome(i));  
                    
SendClientMessage(playerid, -1string);   
                    
count++;   
                }   
            }   
        }   
    }   
    if(
count == 0) return SendClientMessage(playeridCOR_BRANCO"Nгo tem nem um player vip online no momento.");   
    return 
1;   

Reply
#11

Quote:
Originally Posted by IlanZ
View Post
й IsPlayerVIP nгo IsPlayervip, '-' serio q n percebeu isso?

PHP Code:
CMD:vips(playerid)   
{   
    new 
string[90];  
    
SendClientMessage(playerid0xADFF2FFF"Todos os Vips online");   
    new 
count0;   
    for(new 
iMAX_PLAYERS+1i++)   
    {   
        if(
IsPlayerConnected(i))   
        {   
            if(
Logado[playerid] == true)   
            {   
                if(
IsPlayerVIP(i))   
                {   
                    
format(string,90,"Vip: %s"Nome(i));  
                    
SendClientMessage(playerid, -1string);   
                    
count++;   
                }   
            }   
        }   
    }   
    if(
count == 0) return SendClientMessage(playeridCOR_BRANCO"Nгo tem nem um player vip online no momento.");   
    return 
1;   

Como tira esse warning e esse erro ;-;

PHP Code:
C:\Projeto (CLS)\filterscripts\vipsystem.pwn(332) : warning 213tag mismatch
C
:\Projeto (CLS)\filterscripts\vipsystem.pwn(632) : error 017undefined symbol "namez"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Reply
#12

Quote:
Originally Posted by GuilhermeNunes
View Post
Como tira esse warning e esse erro ;-;

PHP Code:
C:\Projeto (CLS)\filterscripts\vipsystem.pwn(332) : warning 213tag mismatch
C
:\Projeto (CLS)\filterscripts\vipsystem.pwn(632) : error 017undefined symbol "namez"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

poste as linhas dos erros
Reply
#13

Vocк estб usando o "namez" sem estб definida
Reply
#14

Quote:
Originally Posted by IlanZ
View Post
Vocк estб usando o "namez" sem estб definida
C:\Projeto (CLS)\filterscripts\vipsystem.pwn(332) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

linha 332 if(Logado[playerid] == true)
Reply
#15

if(Logado[playerid] == 1)

Vбriavel acho que nгo й bool
Reply
#16

Quote:
Originally Posted by IlanZ
View Post
if(Logado[playerid] == 1)

Vбriavel acho que nгo й bool
olha mano ;-;

http://imgur.com/a/Gb2F9
Reply
#17

Nгo entendi, quer que apareзa os players online ou a informaзгo do seu vip ?
Reply
#18

os players online mais ai eu digito /vips e aparece que n tem nenhum sendo que quando eu digito /infovip aparece que eu sou vip mais ai n mostra no /vips que eu sou vip entendeu?
Reply
#19

Acho que nгo й namez deve ser namesz
Reply
#20

PHP Code:
#include <foreach>
CMD:vips(playerid)    
{    
    new 
        
string256 ], 
        
jvip
    
;   
    
SendClientMessageplayerid0xADFF2FFF"Jogadores VIP Online" );    
    foreach( 
Player)    
    {           
        if( 
IsPlayerVIP))    
        {    
            ++
jvip;
            
formatgstringsizeofgstring ),"%s ( Jogador(a) VIP )"Nome));   
            
SendClientMessageplayerid, -1gstring );          
        }    
    }    
    if( 
jvip <= )
    { 
        
SendClientMessageplayerid, -1"x Nгo existe nenhum(a) jogador(a) VIP Online no momento.");    
    }
    return 
1;    

Include
https://sampforum.blast.hk/showthread.php?tid=570868
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)