player wont spawn after log in - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: player wont spawn after log in (
/showthread.php?tid=253643)
player wont spawn after log in -
Jack_Leslie - 07.05.2011
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
Re: player wont spawn after log in -
(SF)Noobanatior - 07.05.2011
you need to set the class info before you spawn them
Re: player wont spawn after log in -
Jack_Leslie - 07.05.2011
Is there such thing as "SetPlayerCass"? or is AddPlayerClass the same thing?
Re: player wont spawn after log in -
(SF)Noobanatior - 07.05.2011
pawn Код:
SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
Re: player wont spawn after log in -
Jack_Leslie - 07.05.2011
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"
Re: player wont spawn after log in -
(SF)Noobanatior - 07.05.2011
its diffrent do as above just before you spawnplayer(playerid) in you register code
Re: player wont spawn after log in -
Jack_Leslie - 07.05.2011
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);