SA-MP Forums Archive
Dialog won't show - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog won't show (/showthread.php?tid=485326)



Dialog won't show - Lyksus - 03.01.2014

The dialog won't show up.. Someone help me please.

pawn Код:
public OnPlayerConnect(playerid)
 {
  new pName[24],
   pName1[24],
   dbQuery[255];
   
  GetPlayerName(playerid, pName, sizeof(pName));
 
  format(dbQuery, sizeof(dbQuery), "SELECT `username` FROM `game_accounts` WHERE `username1 = '%s' LIMIT 0,1", pName);
  mysql_function_query(dbHandle, dbQuery, true, "AccountLoad", "is", playerid, pName);
  return 1;
 }
 
 func AccountLoad(playerid, q_acc[])
 {
  new rows, fields,string[255];
  cache_get_data(rows, fields);
  if(rows)
  {
   format(string, sizeof(string), "Welcome back, %s.\nPlease enter your password below.", q_acc);
   SPD(playerid, THREAD_DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", string, "Login", "Cancel");
  }
  else
  {
   format(string, sizeof(string), "Welcome, %s.\nPlease enter a password you'll remember below.", q_acc);
   SPD(playerid, THREAD_DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register", string, "Register", "Cancel");
  }
  return 1;
 }



Re: Dialog won't show - Lyksus - 09.01.2014

bumb