SA-MP Forums Archive
White Screen When Login to Server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: White Screen When Login to Server (/showthread.php?tid=574771)



White Screen When Login to Server - PhilippineGangsta - 20.05.2015

This occurs when i Run the server.cfg when i use the name of my Pawno Compile file (AMX).
gamemode0 EM,pro 1
"EM,pro" is the name i Compiled the pawno,And while i'm running it and when i log into the server,it shows like this and the screen getting white after i click "Spawn" Button.
Is it because i dont have a Script to apply the password to login or something else?




Re: White Screen When Login to Server - MikE1990 - 20.05.2015

Do you have AddPlayerClass in your script ?


Re: White Screen When Login to Server - PhilippineGangsta - 20.05.2015

Yeah i got


Re: White Screen When Login to Server - MikE1990 - 20.05.2015

Show it please.


Re: White Screen When Login to Server - Smileys - 20.05.2015

Why name the gamemode to something like that, lol.

try changing the gamemode name, see what happens.


Re: White Screen When Login to Server - PhilippineGangsta - 20.05.2015

@MikE1990 ,I got AddPlayerClass in various PWN Files in Game Mode Folder
@Smileys ,I've tried with several names but the problem is still here.

And I've noticed the error name in the SAMP-Server Run,
it's Run time error 20: "Invalid index parameter (bad entry point)"
I've seen that error in the Run.


Re: White Screen When Login to Server - PhilippineGangsta - 20.05.2015

While i was searching for a solution at ******,I've found how to fix that problem,it was to add Main() to the script,Now i dont see any error when i run the SAMP-Server,But i still get the White window problem and i dont get any box to include my password.


Re: White Screen When Login to Server - MikE1990 - 20.05.2015

Do you have
Code:
main() {   }
in your game mode ?


Re: White Screen When Login to Server - PhilippineGangsta - 20.05.2015

Yeah Just Included it to the script,And it solved the error occurred in SAMP-Server Run,But the white screen problem is still can be seen


Re: White Screen When Login to Server - Vince - 20.05.2015

This is caused by not having at least one proper class or by faulty world bounds, so check both.


Re: White Screen When Login to Server - PhilippineGangsta - 20.05.2015

I will check my classes BTW what you mean by faulty world bounds?


Re: White Screen When Login to Server - kyriakos587 - 20.05.2015

Use
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);

when some one register or login


Re: White Screen When Login to Server - Smileys - 20.05.2015

Quote:
Originally Posted by PhilippineGangsta
View Post
I will check my classes BTW what you mean by faulty world bounds?
It means that the place of class selection(or spawn) is far outside the world boundaries(far away from the normal San Andreas map)


Re: White Screen When Login to Server - Konstantinos - 20.05.2015

Quote:
Originally Posted by PhilippineGangsta
View Post
I got AddPlayerClass in various PWN Files in Game Mode Folder
You must add atleast 1 class (AddPlayerClass) in THAT gamemode, the rest have nothing to do with it.


Re: White Screen When Login to Server - PhilippineGangsta - 20.05.2015

I will check the classes.BTW what is faulty world bound?


Re: White Screen When Login to Server - PhilippineGangsta - 21.05.2015

I have checked the Classes very well and no mistakes in it,Also I've tried Reinstralling 0.3.7 Windows Server,But the error is still!! Any Solution please?


Re: White Screen When Login to Server - PhilippineGangsta - 21.05.2015

Quote:
Originally Posted by Smileys
View Post
It means that the place of class selection(or spawn) is far outside the world boundaries(far away from the normal San Andreas map)
I think this is the problem for White Screen,It Shows "You're too far from the boundaries" or something when i get the White Screen,So how could i change my PlayerClass to,it's already within the world boundary i guess,

Code:
public OnGameModeInit()
{

 AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);



Re: White Screen When Login to Server - SickAttack - 21.05.2015

Quote:
Originally Posted by PhilippineGangsta
View Post
I think this is the problem for White Screen,It Shows "You're too far from the boundaries" or something when i get the White Screen,So how could i change my PlayerClass to,it's already within the world boundary i guess,

Code:
public OnGameModeInit()
{

 AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
Set everything to 0.


Re: White Screen When Login to Server - PhilippineGangsta - 21.05.2015

Still the problem arises


Re: White Screen When Login to Server - SickAttack - 21.05.2015

Is your gamemode new? Or does it already have a bunch of lines? But anyway, post it here if you do not mind.