SA-MP Forums Archive
[AJUDA]Player n ta spawnando. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]Player n ta spawnando. (/showthread.php?tid=331473)



[AJUDA]Player n ta spawnando. - tonisantolia - 04.04.2012

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;
                   }
               }
        }
    } 



Re: [AJUDA]Player n ta spawnando. - Fernando Vinewood - 04.04.2012

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


Re: [AJUDA]Player n ta spawnando. - ViniBorn - 04.04.2012

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);