player wont spawn after log in
#1

So i'm trying to learn pawn.
I've finally done a register/login system saving info (i dont know if it saves fully yet because i cant spawn lol)
I was able to spawn but all of a sudden i'm not.


http://pastebin.com/mUHJa5JQ
Reply
#2

you need to set the class info before you spawn them
Reply
#3

Is there such thing as "SetPlayerCass"? or is AddPlayerClass the same thing?
Reply
#4

pawn Код:
SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
Reply
#5

I have,
Код:
public OnGameModeInit()
{
AddPlayerClass(0, -1420.21, 2599.45, 56.43, 269.15, 0, 0, 0, 0, 0, 0);
	return 1;
}
But it still does nothing when I click "spawn"
Reply
#6

its diffrent do as above just before you spawnplayer(playerid) in you register code
Reply
#7

if I've got:

Код:
new Float:positionx;
new Float:positiony;
new Float:positionz;
and then

Код:
dini_IntSet(file, "PositionX", floatround(positionx));
How do I use the position X in the SetSpawnInfo?

SetSpawnInfo(playerid, team, skin, (What do I put here to use the info from the dini file?), Float:y, Float:z, Float:rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)