I have a two misunderstanding.
#1

FIRST: which of these two variants is better and better to avoid the occurrence of errors?
1:
PHP код:
enum {
   
DIALOG_REGISTER,
   
DIALOG_LOGIN,
   
DIALOG_SELECT,
...
}; 
OR
2:
PHP код:
 #define DIALOG_REGISTER   1
  #define DIALOG_LOGIN   2
  #define DIALOG_SELECT   3
... 
I want to choose between these two variants to store ids from dialogs.


SECOND:
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
IsPlayerConnected(playerid))
    {
        new 
sendername[MAX_PLAYER_NAME], string[1500];
        
mysql_escape_string(inputtextinputtextMAX_STRING);
        
//-------------------------------------------------------- 
if I use the mysql_escape_string function at the beginning it will work, I do not want to put it every time I put something in the database, and I do not even want to change all the mysq_format add-on% e, there are too many.

PS: i used ******Translate.
Reply


Messages In This Thread
I have a two misunderstanding. - by Florin48 - 27.07.2018, 14:50
Re: I have a two misunderstanding. - by NaS - 27.07.2018, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)