Spawn problem [Loading... || Stay within the...]
#1

Hi all,
first sry for bad english :P

It is a long time since I scripted.
I've just started again with my old self-made script.
Now I have the problem with the Spawn ....
As soon as I logged in myself I must press the spawn button, and spawn as soon as I've made the screen is white and it stands Loading ...




This is my OnPlayerSpawn...

PHP код:
public OnPlayerSpawn(playerid)
{
    
TextDrawShowForPlayer(playerid,BankGeld[playerid]);
    
TextDrawShowForPlayer(playerid,LSRURL);
    
TextDrawShowForPlayer(playerid,EcKarte);
    if(
gSpielerEingeloggt[playerid] == 0)
    {
        
SendClientMessage(playerid,FARBE_GELB,"*** Es wir ein Login vor dem Spawnen benцtigt! ***");
        
Kick(playerid);
        return 
1;
    }
    if(
SpielerInfo[playerid][pTutorial] == 0)
    {
        
SetPlayerPos(playerid,1419.5648,-871.4538,48.7171);
        
SetPlayerCameraPos(playerid,1424.4377,-853.0256,49.1286);
        
SetPlayerCameraLookAt(playerid,1413.6162,-807.9249,85.0693);
        
TogglePlayerControllable(playerid,0);
        
tFlieger CreatePlayerObject(playerid,1683, -1256.219604, -165.05749519.0510640.00000.0000136.5464);
        
SetTimerEx("Tutorial"10000"d"playerid);
        return 
1;
    }
    if(
SpielerInfo[playerid][pHaus] == 0)
    {
        if(
SpielerInfo[playerid][pId] == 1000)
        {
            if(
SpielerInfo[playerid][pLeader] == || SpielerInfo[playerid][pMember] == 1CopSpawn(playerid);
            if(
SpielerInfo[playerid][pLeader] == || SpielerInfo[playerid][pMember] == 2TaxiSpawn(playerid);
            if(
SpielerInfo[playerid][pLeader] == || SpielerInfo[playerid][pMember] == 3MedicSpawn(playerid);
            else
            
SetPlayerPos(playerid,1969.2786,-2176.0940,13.5469);
            return 
1;
        }
    }
    else
    {
        if(
SpielerInfo[playerid][pId] == 1)
        {
            
SetPlayerPos(playerid,1642.3235,-2204.3228,13.5469);
            return 
1;
        }
        else if(
SpielerInfo[playerid][pId] == 2)
        {
            
SetPlayerPos(playerid,1685.7727,-2204.3157,13.5469);
            return 
1;
        }
          else if(
SpielerInfo[playerid][pId] == 3)
        {
            
SetPlayerPos(playerid,1730.5632,-2204.1628,13.5469);
            return 
1;
        }
     }
     
SetPlayerSkin(playerid,SpielerInfo[playerid][pSkin]);
    return 
1;

I hope someone can help, is very important!
Looking forward to any help.
Thanks
Reply
#2

Do you have a class in your script (AddPlayerClass)?

Also, show your OnPlayerRequestSpawn callback, if there is one.

This forum requires that you wait 120 seconds between posts. Please try again in 12 seconds.
Reply
#3

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

this is my callback :/
Reply
#4

Do you use SetPlayerWorldBounds in your script? remove or fix that if so, only set them after a player has spawned inside the worldbounds.
Reply
#5

i dont use SetPlayerWorldBounds in my script
Reply
#6

Does your onplayerrequestclass callback work? ie, can you can change skins? If not post that too. I've never seen this problem b4.
Reply
#7

I have the same problem when i make register login system with mysql
Reply
#8

That guy is offline now, can you use OnPlayerRequestClass ok HrvojeCro?
Reply
#9

In place where you show "You are logged in.."
use SpawnPlayer(playerid);

so you dont even need to press spawn, button
Reply
#10

Quote:
Originally Posted by iggy1
Посмотреть сообщение
That guy is offline now, can you use OnPlayerRequestClass ok HrvojeCro?
when i dont have mysql, but when i made register/login system i just connected and dont spawn and no class seelection just everything went white and was like on this picture... and when i pause and unpause pause menu picture show on screen but only picture not full menu
dont know why, then i removed r/l system and deleted mysql cuz i was using it only for that, and it works normal
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)