02.07.2012, 03:46
Wouldn't that be if description = descritption2 ? i would like it to be what ever the player inputs that if its equal to either description or description2 if would return the name, but thank you all who replyed See if this gives a better view
Код:
enum Playerstatistics { description[255], description2[255], } command(show,playerid,params[]) { ShowPlayerDialog(playerid,DIALOG_STYLE_INPUT,1,"Enter a description","enter the players description to get the name","ok","cancel"); return 1; } case 1: { for(new i=0;i<MAX_PLAYERS;i++) //loop for all players { new string[128]; if(!strcmp(Player[i][description],inputtext,true)) || !strcmp(Player[i][description2],inputtext,true)))) { format(string,sizeof(string),"%s",GetName(i)); SendClientMessage(playerid,WHITE,string); } else { SendClientMessage(playerid,WHITE,"nothing was found"); } } }