04.04.2017, 14:09
Hi,
getting the error while trying to get the inputtext, from the input dialog to strcmp. Any ideas?
Thanks a lot
getting the error while trying to get the inputtext, from the input dialog to strcmp. Any ideas?
Код HTML:
.pwn(13227) : error 035: argument type mismatch (argument 2) .pwn(13236) : warning 213: tag mismatch .pwn(13237) : warning 213: tag mismatch
Код HTML:
if(dialogid == 1059)
{
if(!response) // If they clicked 'Cancel' or pressed esc
{
SendClientMessage(playerid,0xFF0000,"* Good Luck");
}
else // Pressed ENTER or clicked 'Login' button
{
if(strcmp(inputtext, 0, true) // line 13227
{
new vardas[MAX_PLAYER_NAME], Pdb_ZP_name[41];
strmid(vardas,inputtext,0,MAX_PLAYER_NAME);
new id = GetPlayeridMid(vardas);
if (id == INVALID_PLAYER_ID){ SendClientMessage(playerid, RED, "* No player found"); return 1;}
GetPlayerName(playerid, vardas, MAX_PLAYER_NAME);
format(Pdb_ZP_name, sizeof(Pdb_ZP_name), "%s", vardas);
TextDrawSetString(Pdb_ZP[playerid][6], Pdb_ZP_name); // line 13236
TextDrawShowForPlayer(playerid, Pdb_ZP[playerid][6]); // line 13237
for(new k; k < 15; k++)
PlayerTextDrawShow(playerid,Pdb_ZP[playerid][k]);
IsPdbOpen[playerid] = 1;
return 1;
}
else
{
SendClientMessage(playerid,0xFF0000,"*No player found");
// Re-show the login dialog
ShowPlayerDialog(playerid,1059, DIALOG_STYLE_INPUT, "Test", "Search player by name:", "Search", "close");
}
}
return 1;
}


