[Ajuda] textdraw = rep+
#8

Quote:
Originally Posted by NicK_
Посмотреть сообщение
Quando eu disse 'mostrar', era pra vocк por para mostra-las para o jogador (PlayerTextDrawShow). Exemplo
PHP код:
public OnPlayerSpawn(playerid) {
    
PlayerTextDrawShow(playerid,HUD7[playerid]);
    
PlayerTextDrawShow(playerid,HUD8[playerid]);
    
PlayerTextDrawShow(playerid,HUD9[playerid]);
    return 
1;

Outra observaзгo...
PHP код:
    KillTimer(Status(playerid)); // Parar de chamar a public "Status" 
Isto istб totalmente errado. Vocк deverб criar uma var, pois quando utilizas SetTimerEx/SetTimer й retornado um ID, que serб utilizado para matar caso queira. Exemplo

PHP код:
new StatusHUD[MAX_PLAYERS];
public 
OnPlayerSpawn(playerid) {
    
StatusHUD[playerid] = SetTimerEx("Status"1000true"d"playerid);
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason) {
    
KillTimer(StatusHUD[playerid]);
    return 
1;

Espero ter ajudado.
PHP код:
    format(Stringsizeof(String), "alive_time: ~w~%d: Seconds."Tempo[playerid]);
    
PlayerTextDrawSetString(playeridText:HUD7,  String);
    
//
    
format(Stringsizeof(String), "blood: ~w~%0.0f",Health);
    
PlayerTextDrawSetString(playeridText:HUD8String);
    
//
    
format(Stringsizeof(String), "name:_~w~%s",Nome(playerid));
    
PlayerTextDrawSetString(playeridText:HUD9String); 
PHP код:
C:\Users\Jefferson\Desktop\157\gamemodes\Projectz.pwn(1314) : warning 213tag mismatch
C
:\Users\Jefferson\Desktop\157\gamemodes\Projectz.pwn(1317) : warning 213tag mismatch
C
:\Users\Jefferson\Desktop\157\gamemodes\Projectz.pwn(1320) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
3 Warnings

Reply


Messages In This Thread
textdraw = rep+ - by zPawnu - 01.09.2015, 20:29
Re: textdraw = rep+ - by GustavoSouza - 01.09.2015, 20:35
Re: textdraw = rep+ - by Dayvison_ - 01.09.2015, 20:36
Re: textdraw = rep+ - by zPawnu - 01.09.2015, 20:43
Re: textdraw = rep+ - by Locky_ - 01.09.2015, 21:07
Re: textdraw = rep+ - by zPawnu - 01.09.2015, 21:14
Re: textdraw = rep+ - by Locky_ - 01.09.2015, 22:33
Re: textdraw = rep+ - by zPawnu - 01.09.2015, 22:45
Re: textdraw = rep+ - by Locky_ - 01.09.2015, 23:01
Re: textdraw = rep+ - by [BOPE]Seu._.Madruga - 02.09.2015, 00:55

Forum Jump:


Users browsing this thread: 3 Guest(s)