Jump to content

Salvarea datelor . MySQL r34


Massari

Recommended Posts

Fit-ar MySQL tau ... :))

Forta Y_INI, oricum bravo pentru munca depusa. (chiar daca e request)

M-am uitat putin peste script, interesant

Eu sunt nimeni. Dar prefer sa fiu un nimeni inconjurat de prieteni adevarati, decat un om faimos inconjurat de falsi.

Nu sunt un scripter perfect, nu sunt nici macar pe aproape, insa in in ciuda acestui fapt incerc sa invat sa le fac pe toate.

Link to comment
Share on other sites

Aici

PublicEx OnPlayerRegister( playerid, Password[ ] )
{
	gQuery[ 0 ] = EOS;

	format( gQuery, sizeof gQuery, "INSERT INTO `Accounts` VALUES(0,'%s','%s',0)", m_NameEx( playerid ), Password ) ;
	mysql_tquery( m_Handle, gQuery, "", "" ) ;

	SetTimerEx( "SpawnPlayerEx", 500, 0, "d", playerid ) ;
	return ( 1 ) ;
}
In loc de
format( gQuery, sizeof gQuery, "INSERT INTO `Accounts` VALUES(0,'%s','%s',0)", m_NameEx( playerid ), Password ) ;
mysql_tquery( m_Handle, gQuery, "", "" ) ;
Nu era:
format( gQuery, sizeof gQuery, "INSERT INTO `Accounts`(`ID`, `Nickname`, `Password`) VALUES(0,'%s','%s')", m_NameEx( playerid ), Password ) ;
mysql_tquery( m_Handle, gQuery, "", "" ) ;

Sau ai tu alta metoda :-?, sau am gresit eu ;))

Link to comment
Share on other sites

Skull" post="163167" timestamp="1402416615"]

Aici

PublicEx OnPlayerRegister( playerid, Password[ ] )
{
	gQuery[ 0 ] = EOS;

	format( gQuery, sizeof gQuery, "INSERT INTO `Accounts` VALUES(0,'%s','%s',0)", m_NameEx( playerid ), Password ) ;
	mysql_tquery( m_Handle, gQuery, "", "" ) ;

	SetTimerEx( "SpawnPlayerEx", 500, 0, "d", playerid ) ;
	return ( 1 ) ;
}
In loc de
format( gQuery, sizeof gQuery, "INSERT INTO `Accounts` VALUES(0,'%s','%s',0)", m_NameEx( playerid ), Password ) ;
mysql_tquery( m_Handle, gQuery, "", "" ) ;
Nu era:
format( gQuery, sizeof gQuery, "INSERT INTO `Accounts`(`ID`, `Nickname`, `Password`) VALUES(0,'%s','%s')", m_NameEx( playerid ), Password ) ;
mysql_tquery( m_Handle, gQuery, "", "" ) ;

Sau ai tu alta metoda :-?, sau am gresit eu ;))

Daca nu ma insel, in versiunile de mysql mai vechi era

asa..  (`ID`, `Nickname`, `Password`)

7bdea99b11.png

rimmon curv.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.