String and textdraw problem
#4

pawn Код:
new acctext[64];
new totalaccs;
new TotalAccStr[256];
mysql_query("SELECT * FROM players");
mysql_store_result();
mysql_fetch_field_row(TotalAccStr,"STRINGWHICHHOLDSTHECOUNT");//Change the "STRINGWHICHHOLDSTHECOUNT" with your var which saves the total count
totalaccs = strval(TotalAccStr);
format(acctext, sizeof(acctext), "Total accounts: %d", totalaccs);

TextDrawSetString(TotalAccStr, acctext);
TextDrawShowForPlayer(playerid, totalacc); //totalacc is the textdraw.
mysql_free_result();
Try now , should work
Reply


Messages In This Thread
String and textdraw problem - by DCatalin - 09.11.2013, 12:20
Re: String and textdraw problem - by -=Dar[K]Lord=- - 09.11.2013, 13:39
Re: String and textdraw problem - by DCatalin - 09.11.2013, 14:06
Re: String and textdraw problem - by -=Dar[K]Lord=- - 09.11.2013, 14:13
Re: String and textdraw problem - by DCatalin - 09.11.2013, 14:47
Re: String and textdraw problem - by KingHual - 09.11.2013, 14:54
Re: String and textdraw problem - by DCatalin - 09.11.2013, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)