sa-mp 0.3 bug (dini) -
chormi - 04.10.2009
In only sa-mp 0.3 test (build) version
in "OnPlayerSpawn" callback "dini" by DracoBlue dosen't work!
test this if you not belive me
Код:
// on top after includes:
#define PLIKGRACZA udb_encode(nazwa(playerid))
public OnPlayerSpawn(playerid){
if(dini_Isset(PLIKGRACZA,"skin")){
SetPlayerSkin(playerid,strval(dini_Get(PLIKGRACZA,"skin")));
}
}
this code doesn't work
on 0.2x work's perfectly
i sory for my bad english this problem very agry me!!GRr
Please fix this bug
sometimes on second time use "onplayerspawn" show errors
Re: sa-mp 0.3 bug (dini) -
(Jeff) - 04.10.2009
Can You Convert The code To English So We Can Have a Look? Thanks
- (Jeff)
Re: sa-mp 0.3 bug (dini) -
krisk - 04.10.2009
It Is In English Already.
@Poster, try to debug it, print the result from that diniGet thing to see if it actually fetches a real skin ID, could be that you forgot to update the scriptfiles folders with the dini stuffs?
Re: sa-mp 0.3 bug (dini) -
beckzy - 04.10.2009
dini_Get returns a string not an integer
Re: sa-mp 0.3 bug (dini) -
chormi - 04.10.2009
Quote:
Originally Posted by BeckzyBoi
dini_Get returns a string not an integer
|
strval - convert string to integer. i use this
please help me
Re: sa-mp 0.3 bug (dini) -
Correlli - 04.10.2009
Quote:
Originally Posted by chormi
Quote:
Originally Posted by BeckzyBoi
dini_Get returns a string not an integer
|
strval - convert string to integer. i use this
please help me
|
You don't need to, use dini_Int, it already returns the strval value.
Re: sa-mp 0.3 bug (dini) -
chormi - 04.10.2009
test code from my first post. This code made me very angry.
Fix It please
i want 0.2x . In this version all work's correctly
Re: sa-mp 0.3 bug (dini) -
Kalcor - 05.10.2009
I've tested SetPlayerSkin and found no problems. Perhaps you should print off what it's setting the skin to.
Re: sa-mp 0.3 bug (dini) -
chormi - 05.10.2009
Kye thank you for time for me
on top i have include dubdb and dini
in file:
Код:
posx=2169.663330
posy=2340.457519
posz=10.671875
Код:
if(dini_Isset(PLIKGRACZA,"posx") && dini_Isset(PLIKGRACZA,"posy") && dini_Isset(PLIKGRACZA,"posz") && dini_Isset(PLIKGRACZA,"posint")){
SetPlayerPos(playerid,dini_Float(PLIKGRACZA,"posx"),dini_Float(PLIKGRACZA,"posy"),dini_Float(PLIKGRACZA,"posz"));
}
on sa-mp 0.2x dini works perfectly in all callbacks
why dini doesn't work in (only OnPlayerSpawn callback) this version?
Interesting is be all calback's dini works good
but in "OnPlayerSpawn" complete doesn't work why?
Re: sa-mp 0.3 bug (dini) -
Kalcor - 05.10.2009
No idea. But you'll see in grandlarc.pwn we use SetPlayerPos in OnPlayerSpawn without any issues. If the co-ords are correct the problem must be some place else.