Rotation doesn't load correctly inside SetSpawnInfo
#1

title
code:
PHP код:
else if(Player[playerid][Faction])
{
    
SendClientMessage(playerid,-1,sprintf("%f",Faction1337[Player[playerid][Faction]][fRot]));
    
SetSpawnInfo(playerid,0,Player[playerid][Skin], Faction1337[Player[playerid][Faction]][fSpawnX], Faction1337[Player[playerid][Faction]][fSpawnY],Faction1337[Player[playerid][Faction]][fSpawnZ],Faction1337[Player[playerid][Faction]][fRot],000000);
    
SetPlayerPos(playerid,Faction1337[Player[playerid][Faction]][fSpawnX],Faction1337[Player[playerid][Faction]][fSpawnY],Faction1337[Player[playerid][Faction]][fSpawnZ]);
    
SetPlayerInterior(playerid,Faction1337[Player[playerid][Faction]][fINT]);
    
SetPlayerVirtualWorld(playerid,Faction1337[Player[playerid][Faction]][fVW]);

Reply
#2

Show us where you assign 'Faction1337[Player[playerid][Faction][fRot]' a value.
Perhaps you haven't assigned a value to it.
Reply
#3

Quote:
Originally Posted by saffierr
Посмотреть сообщение
Show us where you assign 'Faction1337[Player[playerid][Faction][fRot]' a value.
Perhaps you haven't assigned a value to it.
PHP код:
SendClientMessage(playerid,-1,sprintf("%f",Faction1337[Player[playerid][Faction]][fRot])); 
i added this so you can see it loads correctly.
Reply
#4

Quote:
Originally Posted by justjamie
Посмотреть сообщение
PHP код:
SendClientMessage(playerid,-1,sprintf("%f",Faction1337[Player[playerid][Faction]][fRot])); 
i added this so you can see it loads correctly.
I don't seem to comprehend what you are trying to say here.
Reply
#5

Quote:
Originally Posted by saffierr
Посмотреть сообщение
I don't seem to comprehend what you are trying to say here.
then maybe you should read it again
Reply
#6

What is problem with code anyway?
Reply
#7

Quote:
Originally Posted by Micko123
Посмотреть сообщение
What is problem with code anyway?
i have no idea.
but when i spawn, i spawn at rotation 0
Reply
#8

so? What is happening in game then??
Reply
#9

Quote:
Originally Posted by Micko123
Посмотреть сообщение
so? What is happening in game then??
it has to put me in rotation 170, instead its putting me in rotation 0.
Reply
#10

I found this on wiki.
PHP код:
SetSpawnInfo(playeridteamskinFloat:xFloat:yFloat:zFloat:Angleweapon1weapon1_ammoweapon2weapon2_ammoweapon3weapon3_ammo
I don't see rotation there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)