Imam maleni problem otkako sam prebacio mod na 0.3a server(rekompajliro sam ga s includima od 0.3).
Uvijek se spawnam sa 20healtha, neovisno o tome koliko je namjestno da se spawnam, uvijek se spawnam sa 20healtha.
U cemu moze biti problem i kako ga rijesit?
Citat: http://wiki.sa-mp.com/wiki/SetPlayerHealth
Important note: Health must be an integer not a float, you can get the integer from a float using floatround. Useful when using GetPlayerHealth, which returns a float.
Proćitaj to i znat ćeš.
Pozdrav,
Correlli
Citat: Don Correlli poslato Oktobar 19, 2009, 23:06:13 POSLE PODNE
Citat: http://wiki.sa-mp.com/wiki/SetPlayerHealth
Important note: Health must be an integer not a float, you can get the integer from a float using floatround. Useful when using GetPlayerHealth, which returns a float.
Proćitaj to i znat ćeš.
Pozdrav,
Correlli
CitatSvidja mi se ovo, samo sjebali su SetPlayerHealth -.-
setplayerhealth ne moze vise dati float vrijednost, samo integer, al tu nije problem, vec je u tome sto getplayerhealth uzima float(a ne integer).
Sada morate svaki taj float koji uzmete sa getplayerhealth prebacit u integer i onda setplayerheatlth... inace ce te imat problema sa healthom na serveru...
Citat: panda poslato Oktobar 19, 2009, 23:08:37 POSLE PODNE
Citat: Don Correlli poslato Oktobar 19, 2009, 23:06:13 POSLE PODNE
Citat: http://wiki.sa-mp.com/wiki/SetPlayerHealth
Important note: Health must be an integer not a float, you can get the integer from a float using floatround. Useful when using GetPlayerHealth, which returns a float.
Proćitaj to i znat ćeš.
Pozdrav,
Correlli
CitatSvidja mi se ovo, samo sjebali su SetPlayerHealth -.-
setplayerhealth ne moze vise dati float vrijednost, samo integer, al tu nije problem, vec je u tome sto getplayerhealth uzima float(a ne integer).
Sada morate svaki taj float koji uzmete sa getplayerhealth prebacit u integer i onda setplayerheatlth... inace ce te imat problema sa healthom na serveru...
Citat: zerocoolos poslato Oktobar 20, 2009, 00:27:02 PRE PODNE
Citat: panda poslato Oktobar 19, 2009, 23:08:37 POSLE PODNE
Citat: Don Correlli poslato Oktobar 19, 2009, 23:06:13 POSLE PODNE
Citat: http://wiki.sa-mp.com/wiki/SetPlayerHealth
Important note: Health must be an integer not a float, you can get the integer from a float using floatround. Useful when using GetPlayerHealth, which returns a float.
Proćitaj to i znat ćeš.
Pozdrav,
Correlli
hehe mene citiras :P
CitatSvidja mi se ovo, samo sjebali su SetPlayerHealth -.-
setplayerhealth ne moze vise dati float vrijednost, samo integer, al tu nije problem, vec je u tome sto getplayerhealth uzima float(a ne integer).
Sada morate svaki taj float koji uzmete sa getplayerhealth prebacit u integer i onda setplayerheatlth... inace ce te imat problema sa healthom na serveru...
a stas xD
Panda ne spamaj da nemoram opominjat ;D
Uredu,hvala
moze LOCK