21.06.2013, 16:23
Oh perfect, I had to change it up a bit (because of error's and I also had it a bit backwards).
Here is the working version (for anyone who ever needs this):
Thanks!
+1 Rep for the help
Here is the working version (for anyone who ever needs this):
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new name[64];
GetPlayerName(i, name, sizeof(name))
if(strcmp(name, (inputtext), true))
{
return ShowPlayerDialog(playerid, 9130,DIALOG_STYLE_INPUT,"Name Lookup","Error: No record of this name exists!\nType a valid name that you would like to lookup.","Search","Cancel");
}
}
}
+1 Rep for the help