Weapon Saving
#1

I have an enumerator of pWeapon, pAmmo.
On disconnect, the script gets the pWeapon, and pAmmo on slot 0.

PlayerInfo[playerid][pWeapon]
PlayerInfo[playerid][pAmmo]

I made it save in an .ini file as well.

On spawn, I made:

pawn Код:
GivePlayerWeapon(playerid, PlayerInfo[playerid][pWeapon], PlayerInfo[playerid][pAmmo]);
but it won't give the weapon or do anything really.

Anyone know why?

I use Y_INI
Reply
#2

This usually should work, are you sure that theyґre getting loaded before OnPlayerSpawn?

You should try to print the Output of the Values
Reply
#3

Works, fixed it.

Had a rookie mistake in the script that wasn't technically an error but yeah...
Thank you for your sincere attempt to help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)