- 0
Ajutor dialog
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Mister
Problema intalnita (descriere): Am acest dialog si as dori sa stiu cum selectez acel " case: "
Ero(area / rile) / warning-(ul / urile): nu am.
Liniile de cod / sursa / script-ul(obligatoriu):
if(strcmp(cmd, "/friends", true) == 0) { new query[254], i[254], name[512],string2[512]; format(query,sizeof(query),"SELECT * FROM `friendlist` WHERE `username` = '%s'",PlayerName(playerid)); mysql_query(query); mysql_store_result(); if(mysql_num_rows() != 0) { while(mysql_fetch_row_format(query, "|")) { FriendsData[playerid][TotalFriends] ++; mysql_fetch_field_row(i,"fr_name"); format(name,sizeof(name),i); if(IsPlayerOnline(name)) { format(name,sizeof(name),"{49ec4e} • {ffffff}%s - {49ec4e}ONLINE\n", name); strcat(string2,name); } else { format(name,sizeof(name),"{ec4949} • {ffffff}%s - {ec4949}OFFLINE\n", name); strcat(string2,name); } ShowPlayerDialog(playerid, 2223, DIALOG_STYLE_LIST, "Prietenii tai:", string2, "Close", ""); } } else { ShowPlayerDialog(playerid, DIALOG_NOFRIENDS, DIALOG_STYLE_MSGBOX, "Prietenii tai:","Lista ta este goala!", "Close", ""); } return 1; }Imagini / Video (optional): http://i.imgur.com/SBh75rN.png
Ati incercat sa rezolvati singur?: da, stiu ca player1 este al 5-lea din lista adica la ondialogresponse "case 4:" este player1
Dar eu am si alte nume cum pot la acel case sa stiu ce nume are case-ul?
Edited by Mister__ ____ __ / |/ (_)____/ /____ _____ / /|_/ / / ___/ __/ _ \/ ___/ / / / / (__ ) /_/ __/ / /_/ /_/_/____/\__/\___/_/ SERVICII SCRIPTING DE CALITATE Pagina Scripting pawn14 answers to this question
Recommended Posts