[Help]Not Load
#1

Hello Guys ))
i Want Help My Ammu + Weapons + Death + KIll Not Load When im Login Why ?
please help +rep
PHP код:
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("Health",PlayerInfo[playerid][pHealth]);
INI_Int("Armour",PlayerInfo[playerid][pArmour]);
INI_Int("Gun1",PlayerInfo[playerid][pGun1]);
INI_Int("Gun2",PlayerInfo[playerid][pGun2]);
INI_Int("Gun3",PlayerInfo[playerid][pGun3]);
INI_Int("Ammo1",PlayerInfo[playerid][pAmmo1]);
INI_Int("Ammo2",PlayerInfo[playerid][pAmmo2]);
INI_Int("Ammo3",PlayerInfo[playerid][pAmmo3]); 
Reply
#2

show OnPlayerConnect
Reply
#3

Quote:
Originally Posted by Cerealguy
Посмотреть сообщение
show OnPlayerConnect
error after i add it on player login in Conect
PHP код:
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("Health",PlayerInfo[playerid][pHealth]);
INI_Int("Armour",PlayerInfo[playerid][pArmour]);
INI_Int("Gun1",PlayerInfo[playerid][pGun1]);
INI_Int("Gun2",PlayerInfo[playerid][pGun2]);
INI_Int("Gun3",PlayerInfo[playerid][pGun3]);
INI_Int("Ammo1",PlayerInfo[playerid][pAmmo1]);
INI_Int("Ammo2",PlayerInfo[playerid][pAmmo2]);
INI_Int("Ammo3",PlayerInfo[playerid][pAmmo3]); 
still problems help me please
Reply
#4

If no code samples as you wish to help? take this and read!

https://sampforum.blast.hk/showthread.php?tid=273088
Reply
#5

Quote:
Originally Posted by Cerealguy
Посмотреть сообщение
If no code samples as you wish to help? take this and read!

https://sampforum.blast.hk/showthread.php?tid=273088
are u kidding me
i use this tut. Register lol
what i do now to load this
PHP код:
forward LoadUser_data(playerid,name[],value[]);
public 
LoadUser_data(playerid,name[],value[])
{
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("Health",PlayerInfo[playerid][pHealth]);
INI_Int("Armour",PlayerInfo[playerid][pArmour]);
INI_Int("Gun1",PlayerInfo[playerid][pGun1]);
INI_Int("Gun2",PlayerInfo[playerid][pGun2]);
INI_Int("Gun3",PlayerInfo[playerid][pGun3]);
INI_Int("Ammo1",PlayerInfo[playerid][pAmmo1]);
INI_Int("Ammo2",PlayerInfo[playerid][pAmmo2]);
INI_Int("Ammo3",PlayerInfo[playerid][pAmmo3]);  
return 
1;

cuz its here but its not load when im login
What now how to fix to load ?
Reply
#6

that code you show is correct!, the problem is something else.
Reply
#7

Quote:
Originally Posted by Cerealguy
Посмотреть сообщение
that code you show is correct!, the problem is something else.
not there problem i made it with out problems
but load only problems
///
The Wanted + Score Not Load i Made This And its Load Now
PHP код:
        SetPlayerWantedLevel(playeridPlayerInfo[playerid][pWanted]);
        
SetPlayerScore(playeridPlayerInfo[playerid][pScore]); 
but idk how to make for this ?
PHP код:
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("Health",PlayerInfo[playerid][pHealth]);
INI_Int("Armour",PlayerInfo[playerid][pArmour]);
INI_Int("Gun1",PlayerInfo[playerid][pGun1]);
INI_Int("Gun2",PlayerInfo[playerid][pGun2]);
INI_Int("Gun3",PlayerInfo[playerid][pGun3]);
INI_Int("Ammo1",PlayerInfo[playerid][pAmmo1]);
INI_Int("Ammo2",PlayerInfo[playerid][pAmmo2]);
INI_Int("Ammo3",PlayerInfo[playerid][pAmmo3]); 
how to make it load please help +rep
Reply
#8

pawn Код:
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("Health",PlayerInfo[playerid][pHealth]);
INI_Int("Armour",PlayerInfo[playerid][pArmour]);
INI_Int("Gun1",PlayerInfo[playerid][pGun1]);
INI_Int("Gun2",PlayerInfo[playerid][pGun2]);
INI_Int("Gun3",PlayerInfo[playerid][pGun3]);
INI_Int("Ammo1",PlayerInfo[playerid][pAmmo1]);
INI_Int("Ammo2",PlayerInfo[playerid][pAmmo2]);
INI_Int("Ammo3",PlayerInfo[playerid][pAmmo3]);  

SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun1], PlayerInfo[playerid][pAmmo1]);
GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun2], PlayerInfo[playerid][pAmmo2]);
GivePlayerWeapon(playerid, PlayerInfo[playerid][pGun3], PlayerInfo[playerid][pAmmo3]);
Reply
#9

still not saving
see
Quote:

Gun1 = 0
Gun2 = 24
Gun3 = 26
Ammo1 = 0
Ammo2 = 100
Ammo3 = 100

and i login not have the gun + ammo
have problems again
why the Armour + Health not write my health 50% 20%
Quote:

Health = 1
Armour = 1

why ?
Quote:

INI_Int("Health",PlayerInfo[playerid][pHealth]);
INI_Int("Armour",PlayerInfo[playerid][pArmour]);

see i made it with float to see my health %
Quote:

INI_WriteInt(File,"Health",GetPlayerHealth(playeri d,health));
INI_WriteInt(File,"Armour",GetPlayerArmour(playeri d,armour));

Quote:

new Float:health;
new Float:armour;

help guys please +rep
Reply
#10

show full code of onplayerdisconnect, onplayerconnect and onplayerdialogresponse >login and register
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)