Houselocker problem -
Camorra - 31.03.2013
SLOVED
Thanks zxc1
Re: Houselocker problem -
zxc1 - 31.03.2013
Why you use a '!' ?
It should be:
Re: Houselocker problem -
Camorra - 31.03.2013
I putted at house file a guns for a test and even that didnt show up.
still show 0 guns
Im testing without !
pawn Код:
new cursguns = dini_Int(filename,"sguns");
new cursdrugs = dini_Int(filename,"sdrugs");
SendClientMSG(playerid, COLOR_LIGHTGREY, "LOCKER: There is currently %d Guns and %d Drugs in the locker.", cursguns, cursdrugs);
return SCP(playerid, "[ take / put ] [ sguns / sdrugs ] [ amount ]");
Re: Houselocker problem -
zxc1 - 31.03.2013
Did you change the guns value in the file, while the server was running?
If yes, turn it off, change the value, turn it on again, and tell me if it's still zero.
Re: Houselocker problem -
Camorra - 31.03.2013
Quote:
Originally Posted by zxc1
Why you use a '!' ? It should be:
|
Still not works.
When i doing /houselocker take sguns 1 that telling me you have put 0 sguns not takes. and for sure there inside house 100 sguns for test that just wont show the house sguns and take / put them
Re: Houselocker problem -
zxc1 - 31.03.2013
I think I know what is the problem.
Are you sure the directory is "Casa%d.txt"?
And not something like "Houses/Casa%d.txt"?
This mistake happens a lot.
Re: Houselocker problem -
Camorra - 31.03.2013
Quote:
Originally Posted by zxc1
I think I know what is the problem.
Are you sure the directory is "Casa%d.txt"?
And not something like "Houses/Casa%d.txt"?
This mistake happens a lot.
|
Yes im sure, its fine and all reading the guns from house and not taking the guns or put them from player
Re: Houselocker problem -
zxc1 - 01.04.2013
I found the problem.
You did not define the 'amount'.
Re: Houselocker problem -
Denying - 01.04.2013
Quote:
Originally Posted by zxc1
Why you use a '!' ? It should be:
|
No.. it should be !strcmp.
It checks if the input is the same as what the scripter compared it with, in this case with 'take'.
@ Camorra: I hate people who steal other people's codes/scripts. ( You know what I mean )
Re: Houselocker problem -
Camorra - 01.04.2013
Quote:
Originally Posted by Denying
No.. it should be !strcmp.
It checks if the input is the same as what the scripter compared it with, in this case with 'take'.
@ Camorra: I hate people who steal other people's codes/scripts. ( You know what I mean )
|
They gavve it to me, keep listen to bullshits.
Quote:
Originally Posted by zxc1
I found the problem.
You did not define the 'amount'.
|
^^ Not working