[Ajuda] Um Errinho Preciso De Ajuda No Meu RPG ?Help?
#1

Sempre tem o negocio de
level :
estudo :
players :
QUANDO O PLAYER CONECTA DAI QUANDO O PLayer Spawna Ele Fika com isso em dobro so q do lado dai fika junto e
bugado entende tipu assim olha nasce outro (PRINT)



Viu O erro Acho q esta em
PHP код:
public OnPlayerConnect(playerid)
{
    new 
szPlayerName[MAX_PLAYER_NAME], connecting_ip[24];
    
GetPlayerName(playeridszPlayerNameMAX_PLAYER_NAME);
    
format(file2sizeof(file2), PASTA_CONTASencrypt(szPlayerName)); // Criptografado
    
format(filesizeof(file), PASTA_CONTASszPlayerName);
    
format(Vnewban32BanDirVBPlayer(playerid));
    
TextDrawHideForPlayer(playeridTextdraw0);
    
TextDrawHideForPlayer(playeridTextdraw1);
    
TextDrawHideForPlayer(playeridTextdraw2);
    
TextDrawHideForPlayer(playeridTextdraw3);
    
TextDrawHideForPlayer(playeridTextdraw4);
    
TextDrawHideForPlayer(playeridTextdraw5);
    
TextDrawHideForPlayer(playeridTextdraw6);
    
TextDrawHideForPlayer(playeridTextdraw7);
    
TextDrawHideForPlayer(playeridTextdraw8);
    
TextDrawHideForPlayer(playeridTextdraw9);
    
TextDrawHideForPlayer(playeridTextdraw10);
    
//TextDrawHideForPlayer(playerid, textlevel[playerid]);
    
if(dini_Exists(file2))
    {
        
RenameFileAccount(file2file);
        
bIllegalPlayer[playerid] = true;
        
SendClientMessage(playeridVermelho"Foi feita uma atualizaзгo de seguranзa em sua conta, relogue por favor.");
        return 
Kick(playerid);
    } 
EEE TBM NO SPAWN

PHP код:
public OnPlayerSpawn(playerid)
{
    new 
pname[MAX_PLAYER_NAME], string[256];
    
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
    
format(filesizeof(file), PASTA_CONTASpname);
    
TextDrawShowForPlayer(playeridTextdraw0);
    
TextDrawShowForPlayer(playeridTextdraw1);
    
TextDrawShowForPlayer(playeridTextdraw2);
    
TextDrawShowForPlayer(playeridTextdraw3);
    
TextDrawShowForPlayer(playeridTextdraw4);
    
TextDrawShowForPlayer(playeridTextdraw5);
    
TextDrawShowForPlayer(playeridTextdraw6);
    
TextDrawShowForPlayer(playeridTextdraw7);
    
TextDrawShowForPlayer(playeridTextdraw8);
    
TextDrawShowForPlayer(playeridTextdraw9);
    
TextDrawShowForPlayer(playeridTextdraw10);
    
TextDrawShowForPlayer(playeridtextlevel[playerid]); 
Reply
#2

Explica melhor... Pois nгo entendi.
Reply
#3

Vocк estб fazendo aparecer a text draw duas vezes, uma quando o player conecta e outra quando ele spawna.
Por isso estб ficando bugado daquela forma.

Escolha se vai aparecer quando o player conectar ou quando ele spawnar e apague da outra.
Reply
#4

Tire todos os TextDrawHideForPlayer no OnPlayerConnect
Reply
#5

nao entendi o porque de criar 2 topicos para o mesmo assunto.
Reply
#6

Cara o erro й simple, vocк adicou textdraw em OnPlayerSpawn, toda vez que ele morrer ela vai criar mais 1 texdraw bugando.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)