Dini save Weapon and Pos -
Bartando - 13.09.2011
hello i have 2 asks

1) i have this in my code
Код:
GivePlayerWeapon(playerid, dini_Int(file, "Weapon")-GetPlayerWeapon(playerid));
and when i register and disconnect , next time , i login in , and i cant spawn , that button doesnt work
this
Код:
GivePlayerWeapon(playerid, dini_Int(file, "Weapon")-GetPlayerWeapon(playerid));
make warning in pawno
Warning:
Код:
warning 202: number of arguments does not match definition
and Second question
2) how can i save Position? With dini
Re: Dini save Weapon and Pos -
brett7 - 13.09.2011
You don't need "-GetPlayerWeapon(playerid)" i dont think. Because how can it return a value if your giving it to the player?
Re: Dini save Weapon and Pos -
Bartando - 13.09.2011
i have that same Warning when i put "-GetPlayerWeapon(playerid)" off
Код:
GivePlayerWeapon(playerid, dini_Int(file, "Weapon"));
Do U now how can i save Skin
Re: Dini save Weapon and Pos -
Kingunit - 13.09.2011
pawn Код:
GetPlayerSkin(playerid, dini_Int(file, "Weapon"));
By the way - why using dini? Kinda old, try MySQL or Y_ini.
Re: Dini save Weapon and Pos -
Bartando - 13.09.2011
I dont know how make MySQL or Y_ini registration with dialogs

(
Re: Dini save Weapon and Pos -
IceCube! - 13.09.2011
YOu make tem the same way you make Dini ones? Except for saving
Re: Dini save Weapon and Pos -
Kush - 13.09.2011
Quote:
Originally Posted by Bartando
I dont know how make MySQL or Y_ini registration with dialogs  (
|
https://sampforum.blast.hk/showthread.php?tid=273088
Re: Dini save Weapon and Pos -
Kingunit - 13.09.2011
Yes - the same way of making a DINI system. Only you are using the code from Y_Ini. How about opening the tutorial section? And search Kush's ones.
// I see he posted it by himself.
Re: Dini save Weapon and Pos -
Bartando - 13.09.2011
Ohh sorry my bad

thx for us
Re: Dini save Weapon and Pos -
Bartando - 14.09.2011
Ohh me again :/
Ok i make new registration but skin isnt loaded

(
I have this in dialog after LOGIN
Код:
SetPlayerSkin(playerid, PlayerInfo[playerid][skin]);
and i look to scriptfiles and in my files is Skin saved good SKIN=50, but when i Reconnect and login i have skin 0 :/
Do U know what i make bad?