Wysłany: 2012-05-07, 21:02
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Witam mam taki oto kod:
Kod: forward Zmeczenie();
public Zmeczenie(){
new Float:HP;
for(new i; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
GetPlayerHealth(i,HP);
SetPlayerHealth(i, HP-1);
}
}
}
I chcia?bym aby info w % pokazywa?o si? w Textdrawie. W tym kodzie co 1 min odejmuje graczowi 1 hp i na TD mia?o by by? Zm?czenie : 1% i tak daalej Prosze o pomoc daje piffka
Wysłany: 2012-05-07, 21:36
Lukasbank
Wiek: 30 Na forum: 5329 dni Posty: 249
Nick w MP: [USD]LuXoR[X]
Piwa : 404
Wysłany: 2012-05-07, 21:40
Combacior
Wiek: 29 Na forum: 5795 dni Posty: 1516
Piwa : 2161
G?ra mapy:
Kod: new Zmeczyl[MAX_PLAYERS];
Po?niej"
Kod: forward Zmeczenie();
public Zmeczenie(){
new Float:HP, string[64];
for(new i; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
GetPlayerHealth(i,HP);
SetPlayerHealth(i, HP-1);
Zmeczenie[i]++;
format(string, sizeof(string),"Zmeczenie: %d %",Zmeczenie[i]);
TextDrawSetString(...,string);
}
}
}
Wysłany: 2012-05-07, 22:09
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Hmm:
Kod: C:\Documents and Settings\DOM\Pulpit\Pliki\CityTruck\CityTruck.pwn(254) : error 028: invalid subscript (not an array or too many subscripts): "Zmeczenie"
C:\Documents and Settings\DOM\Pulpit\Pliki\CityTruck\CityTruck.pwn(254) : warning 215: expression has no effect
C:\Documents and Settings\DOM\Pulpit\Pliki\CityTruck\CityTruck.pwn(254) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\DOM\Pulpit\Pliki\CityTruck\CityTruck.pwn(254) : error 029: invalid expression, assumed zero
C:\Documents and Settings\DOM\Pulpit\Pliki\CityTruck\CityTruck.pwn(254) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
[ Dodano : 2012-05-07, 22:11 ]
Okej ju? mam
[ Dodano : 2012-05-07, 22:23 ]
Mo?na zamkn??
Tagi: pobieranie :: info :: textdrawu
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: