Login help
#1

why do you look at nothing when this is here?

Код:
public OnPlayerSpawn(playerid)
{
	SetupPlayerForClassSelection(playerid);
	return 1;
}

SetupPlayerForClassSelection(playerid)
{
 	SetPlayerInterior(playerid,14);
	SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
	SetPlayerFacingAngle(playerid, 270.0);
	SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
	SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}
Reply
#2

i think that is it. but when i put it in my server and started it. it shows no map but the login works
Reply
#3

when i login and pick character then click spawn it sends me to blank area. no anything.
Reply
#4

Yeah you have to

Код:
SetPlayerInterior(playerid, 0);
OnPlayerSpawn
Reply
#5

Quote:
Originally Posted by IcyBlight
Yeah you have to

Код:
SetPlayerInterior(playerid, 0);
OnPlayerSpawn
yep 0

that should work ^^
Reply
#6

k i had to add main(); at top of script. now it lags when you enter server. like it takes forever to get to the changing room. any ideas why?
Reply
#7

nvm. big problem. when you spawn you are in the changing room. here is what i put in. any suggestions?

Код:
public OnPlayerSpawn(playerid)
{
	SetupPlayerForClassSelection(playerid);
	return 1;
}

SetupPlayerForClassSelection(playerid)
{
 	SetPlayerInterior(playerid,14);
	SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
	SetPlayerFacingAngle(playerid, 270.0);
	SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
	SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}
Reply
#8


Код:
public OnPlayerSpawn(playerid)
{
	SetPlayerInterior(playerid, 0); // THERE, I FIXED IT
	SetupPlayerForClassSelection(playerid);
	return 1;
}

SetupPlayerForClassSelection(playerid)
{
 	SetPlayerInterior(playerid,14);
	SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
	SetPlayerFacingAngle(playerid, 270.0);
	SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
	SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
}
There, I fixed it
Reply
#9

ok. now i spawn in the changing room. and now my gamemode gets and error of a bad entry point.
Reply
#10

Quote:
Originally Posted by RoneyRemington
ok. now i spawn in the changing room. and now my gamemode gets and error of a bad entry point.
You arent lucky.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)