SA-MP Forums Archive
text is not formatted - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: text is not formatted (/showthread.php?tid=419030)



text is not formatted - Brokenbreaken - 27.02.2013

//Fixed - Code delete.


Re: text is not formatted - [MG]Dimi - 27.02.2013

pawn Код:
SendClientMessage(playerid,COLOR_WHITE,">> "C_RED"You are banned from this server.");
format(String,200,">> "C_RED"Remeining time it %s.",ConvertSeconds(strval(String) - gettime()));
//missing SendClientMessage

db_get_field_assoc(DatabaseResult,"PlayerBannedAdministratorName",String,30);
format(String,200,">> "C_RED"Administrator which gave ban it %s.",String);
SendClientMessage(playerid,COLOR_WHITE,String);

db_get_field_assoc(DatabaseResult,"PlayerBannedReason",String,30);
format(String,200,">> "C_RED"Reason of ban is %s.",String);
SendClientMessage(playerid,COLOR_WHITE,String);

db_get_field_assoc(DatabaseResult,"PlayerBannedDate",String,30);
format(String,200,">> "C_RED"Date of getting ban it %s.",String);
SendClientMessage(playerid,COLOR_WHITE,String);



Re: text is not formatted - Brokenbreaken - 27.02.2013

I know but i have this:
Quote:

Remaining time it (nothing here).
Administrator which gae ban it (nothing here).

Why?


Re: text is not formatted - [MG]Dimi - 27.02.2013

Try to print DatabaseResult right after you save reurned info in it.


Re: text is not formatted - Brokenbreaken - 27.02.2013

//Fixed - Code delete.


Re: text is not formatted - Brokenbreaken - 27.02.2013

@Bump, any idea?