Dini save Weapon and Pos
#1

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
Reply
#2

You don't need "-GetPlayerWeapon(playerid)" i dont think. Because how can it return a value if your giving it to the player?
Reply
#3

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
Reply
#4

pawn Код:
GetPlayerSkin(playerid, dini_Int(file, "Weapon"));
By the way - why using dini? Kinda old, try MySQL or Y_ini.
Reply
#5

I dont know how make MySQL or Y_ini registration with dialogs (
Reply
#6

YOu make tem the same way you make Dini ones? Except for saving
Reply
#7

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
Reply
#8

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.
Reply
#9

Ohh sorry my bad thx for us
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)