Strange bug..
#1

When a player connects, it's giving a player a Rocket Launcher with 0 ammo, I looked on my script and GivePlayerWeapon(playerid, 35, 0); is not in my script.. so, is it a SA-MP related bug?

Thanks
Reply
#2

http://forum.sa-mp.com/forumdisplay.php?f=20
Reply
#3

No, this is not a SA-MP bug. Do you have "AddPlayerClass" anywhere in your script? If so, please post all of the lines.
Reply
#4

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
No, this is not a SA-MP bug. Do you have "AddPlayerClass" anywhere in your script? If so, please post all of the lines.
Yes,

pawn Код:
AddPlayerClass(288, -244.2003, 2602.5547, 63.7031, 270.1281, 35, 0, 0, 0, 0, 0); // usa spawn - a
AddPlayerClass(286, -135.6082, 1116.5326, 21.1966, 94.4754, 35, 0, 0, 0, 0, 0); // german spawn - a
AddPlayerClass(126, -686.0115, 939.5402, 14.6328, 94.4754, 35, 0, 0, 0, 0, 0); // merc spawn
AddPlayerClass(113, -786.8021, 1568.6122, 28.0714, 270.1281, 35, 0, 0, 0, 0, 0);// russia spawn - a
AddPlayerClass(123, -1479.6936, 2627.0244, 58.7813, 94.4754, 35, 0, 0, 0, 0, 0); // japan spawn - a
There is the "bug", I just have to delete 35 xD

My bad

Thank you very much!
Reply
#5

It might be a bug. GetPlayerWeapon can return a random, valid value when a player is selecting the skin, not always though.
________
HotCarmell
Reply
#6

Always it was giving me the Rocket Launcher, even when player was spawned.
Reply
#7

You said this was fixed, so is it?
Reply
#8

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
You said this was fixed, so is it?
Yep, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)