[AJUDA]Player n ta spawnando.
#1

Galera, to aprimorando meu sistema de registro

Bom, o cara registra tudo direitinho... mas nгo spawna o.o eu uso SpawnPlayer(playerid); e SetSpawnInfo...
Alguem ajuda ai?:
PHP код:
    if(dialogid == 2)
    {
        if(
response == 2)
        {
            
SendClientMessage(playeridAmarelo"OK! Entendo sua decisгo de nгo logar-se agora. Qualquer coisa Use: /logar (Senha).");
            return 
1;
        }
        if(
response == 1)
        {
               new 
sendername[MAX_PLAYER_NAME];
               new 
file[64];
               
GetPlayerName(playeridsendernamesizeof(sendername));
               
format(filesizeof(file), "%s.ini"sendername);
               if(
Logado[playerid] == 1)
               {
                   
SendClientMessage(playerid, -1"Vocк jб ta logado maluco :D");
                   return 
1;
               }
               else
               {
                      if(!
strcmp(tmppass,dini_Get(file,"Senha"),false))
                      {
                       
SpawnPlayer(playerid);
                       
SetSpawnInfo(playeridORGSKIN1243.2386,-1693.4060,16.1976,193.4694,0,0,0,0,0,0);
                       
PlayerInfo[playerid][pAdmin] = dini_Int(file"Administrador");
                       
PlayerInfo[playerid][pSkin] = dini_Int(file"Skin");
                       
PlayerInfo[playerid][pGrana] = dini_Int(file"Dinheiro");
                       
PlayerInfo[playerid][pLider] = dini_Int(file"Lider");
                       
PlayerInfo[playerid][pVidaInicial] = dini_Int(file"VidaInicial");
                       
PlayerInfo[playerid][pMembro] = dini_Int(file"Membro");
                       
PlayerInfo[playerid][pMorreu] = dini_Int(file"Morreu");
                       
PlayerInfo[playerid][pMatou] = dini_Int(file"Matou");
                       
PlayerInfo[playerid][pSexo] = dini_Int(file"Sexo");
                       
PlayerInfo[playerid][pRegistrado] = dini_Int(file"Registrado");
                       
Logado[playerid] = 1;
                       if(
PlayerInfo[playerid][pRegistrado] == 0)
                       {
                           
PlayerInfo[playerid][pRegistrado] = 1;
                           
ShowPlayerDialog(playerid1DIALOG_STYLE_MSGBOX"BDGames RPG v1.3a""Olб, seja bem vindo ao BDGames RPG v1.3a\nVamos nos conhecer melhor?\nPara comeзar escolha seu sexo logo abaixo :D""Masculino""Feminido");
                       }
                       return 
1;
                   }
                   else
                   {
                       
SendClientMessage(playeridCinza"Senha errada!");
                       return 
1;
                   }
               }
        }
    } 
Reply
#2

Tenta colocar o SpawnPlayer depois de "Logado[playerid] = 1;".
Reply
#3

pawn Код:
SpawnPlayer(playerid);
SetSpawnInfo(playerid, ORG, SKIN, 1243.2386,-1693.4060,16.1976,193.4694,0,0,0,0,0,0);
pawn Код:
SetSpawnInfo(playerid, ORG, SKIN, 1243.2386,-1693.4060,16.1976,193.4694,0,0,0,0,0,0);
SpawnPlayer(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)