0.3a Health Problem

Započeo dinkO14, Oktobar 19, 2009, 23:04:09 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

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?
Poslednja Izmena: Oktobar 19, 2009, 23:04:30 POSLE PODNE od dinkO14

Correlli

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

turker_kc

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

zerocoolos

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

Poslednja Izmena: Oktobar 20, 2009, 13:17:05 POSLE PODNE od zerocoolos

turker_kc

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

r4z0r

Panda ne spamaj da nemoram opominjat  ;D

Uredu,hvala

moze LOCK
Poslednja Izmena: Oktobar 20, 2009, 18:32:43 POSLE PODNE od dinkO14