sa-mp 0.3 bug (dini)
#1

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



Reply
#2

Can You Convert The code To English So We Can Have a Look? Thanks

- (Jeff)
Reply
#3

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

dini_Get returns a string not an integer
Reply
#5

Quote:
Originally Posted by BeckzyBoi
dini_Get returns a string not an integer
strval - convert string to integer. i use this
please help me
Reply
#6

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

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



Reply
#8

I've tested SetPlayerSkin and found no problems. Perhaps you should print off what it's setting the skin to.
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)