Jump to content
  • 0

Sprijin TextDraw Jail


w3b

Question

Nume: Hobbs.

Problemă întâlnită: Am facut de curand un TextDraw la jail (cand esti in jail ti arata "Timp ramas %s sec" http://img.plici.ro/image/lUn  )

dar are 2 probleme :

1: Am pus un SetTimer de 1 sec , acelasi timer care e si la kilometraj si la ceas la secunde , dar textul de la jail  nu scade din secunda in secunda , scade din 3 in 3 ( el scade asa 100 apoi 97 , 94 , 91 in loc sa scada asa cum ar trb 100 apoi 99 , 98 ,97).

2: Dupa ce se termina timpul de la jail nu dispare TextDraw-ul ramane acolo dar nu mai scade sau creste , ramane la secunda 2.

Am pus TextDrawDestroy(TextDrawJAIL); la o functie care iti arata dupa jail un text mare "Freedom , incearca sa fii un om mai bun"

[pawn]

PlayerData[pJailed] = 0;

TextDrawDestroy(TextDrawJAIL);

SendClientMessage(i, COLOR_GRAD1," Ati platit datoria dumneavoastra fata de societate.");

format(string, sizeof(string), "~g~Freedom~n~~w~Incearca sa fi un civil mai bun");

GameTextForPlayer(i, string, 5000, 1);

TextDrawDestroy(TextDrawJAIL);[/pawn]

Errori: nu da

Ai incercat sa rezolvi singur ?: Pai l-am creat si m-am tot uita in el dar nu am vz nimic ineregula nush ce sa ii fac :|

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

GameTextForPlayer(i, string, 5000, 1); seteazal in GameTextForPlayer(i, string, 1000, 1);

Si ce ai facut tu acolo nici dumnezeu nu intelege....ori pui GameText ori TextDraw -.-"

EDIT: Topic inchis , 48h fara reply.

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.