Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: dinkO14 poslato Oktobar 19, 2009, 23:04:09 POSLE PODNE

Naslov: 0.3a Health Problem
Poruka od: dinkO14 poslato Oktobar 19, 2009, 23:04:09 POSLE PODNE
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?
Naslov: Odg: 0.3a Health Problem
Poruka od: 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
Naslov: Odg: 0.3a Health Problem
Poruka od: turker_kc 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...
Naslov: Odg: 0.3a Health Problem
Poruka od: 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

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

Naslov: Odg: 0.3a Health Problem
Poruka od: turker_kc poslato Oktobar 20, 2009, 10:27:24 PRE PODNE
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
Naslov: Odg: 0.3a Health Problem
Poruka od: r4z0r poslato Oktobar 20, 2009, 14:01:04 POSLE PODNE
Panda ne spamaj da nemoram opominjat  ;D
Naslov: Odg: 0.3a Health Problem
Poruka od: dinkO14 poslato Oktobar 20, 2009, 18:32:21 POSLE PODNE
Uredu,hvala

moze LOCK