SA-MP Forums Archive
Is there something wrong in this line? - 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: Is there something wrong in this line? (/showthread.php?tid=618617)



Is there something wrong in this line? - NealPeteros - 08.10.2016

Hi guys! Is there something wrong in this line?

PHP код:
SetSpawnInfo(playeridPlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1, -1); 
Says it's a tag mismatch. Can someone correct it for me? Thanks!


Re: Is there something wrong in this line? - Luicy. - 08.10.2016

PHP код:
SetSpawnInfo(playeridPlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1, -1); 
SetSpawnInfo(playeridteamskinFloat:xFloat:yFloat:zFloat:rotationweapon1weapon1_ammoweapon2weapon2_ammoweapon3weapon3_ammo
PHP код:
SetSpawnInfo(playerid0PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1); 
enjoy


Re: Is there something wrong in this line? - AndySedeyn - 08.10.2016

SetSpawnInfo has a team parameter:
PHP код:
SetSpawnInfo(playeridteamskinFloat:xFloat:yFloat:zFloat:Angleweapon1weapon1_ammoweapon2weapon2_ammoweapon3weapon3_ammo



Re: Is there something wrong in this line? - Vince - 08.10.2016

Attention: 0 is a valid team. If all players are set to this team it means no one can harm one another. Use NO_TEAM (which is defined as 255) instead.


Re: Is there something wrong in this line? - Luicy. - 08.10.2016

Quote:
Originally Posted by Vince
Посмотреть сообщение
Attention: 0 is a valid team. If all players are set to this team it means no one can harm one another. Use NO_TEAM (which is defined as 255) instead.
That's why I always had to create a server sided health to get it work in my scripts.. ggwp.


Re: Is there something wrong in this line? - NealPeteros - 09.10.2016

Thanks! It helped. Got one again here
PHP код:
         SendClientMessage(playeridCOLOR_FADE"Vampire Jump (%d/3)"Skills[playerid][Jump]); 



Re: Is there something wrong in this line? - NealPeteros - 09.10.2016

Fixed. Used format