- 0
Ajutor comanda /members - Nu im afiseaza dialog-ul
-
Similar Content
-
- 2 answers
- 376 views
-
- 3 answers
- 398 views
-
- 5 answers
- 1.093 views
-
- 8 answers
- 690 views
-
ajutor conectare data de baze in gamemode ca nustiu care pun ca le pun pe amandoua si numi merge va las jos sa imi spuneti care ip trebuie
By pericz,
- 8 answers
- 2.440 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
pawn
salut,
Intampin si eu o problema la comanda /members - Nu afiseaza dialog-ul, Va rog, Ajutati-ma
case 0: {
new rank[64], fw[64];
format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `Username`='%s'", sName[playerid]);
new Cache: result = mysql_query(SQL, szQuery);
if(!IsACop(playerid)) {
for(new i, j = cache_get_row_count (); i != j; ++i)
{
cache_get_field_content(i, "Username", szResult); format(name, 256, szResult);
cache_get_field_content(i, "Rank", szResult); format(rank, 256, szResult);
cache_get_field_content(i, "FWarns", szResult); format(fw, 256, szResult);
format(string, sizeof(string), "Name: %s\nRank: %s\nFaction warns: %s", name, rank, fw);
strcat(MemberString, string);
}
cache_delete(result);
}
else {
for(new i, j = cache_get_row_count (); i != j; ++i)
{
cache_get_field_content(i, "Username", szResult); format(name, 256, szResult);
cache_get_field_content(i, "Rank", szResult); format(rank, 256, szResult);
cache_get_field_content(i, "FWarns", szResult); format(fw, 256, szResult);
format(string, sizeof(string), "Name: %s\nRank: %s\nFaction warns: %s", name, rank, fw);
strcat(MemberString, string);
}
cache_delete(result);
}
ShowPlayerDialog(playerid, DIALOG_RAPORTS, DIALOG_STYLE_MSGBOX, "Raports", MemberString, "Ok", "Back");
}
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now