Mysql to sscanf
#1

Код:
	SetPlayerSkin( playerid, SAVEREALSKIN[ playerid ] );
   	new
		fetch[16],
	    Query[256];

    format(Query, sizeof(Query), "SELECT * FROM `players` WHERE Vardas = '%s'", GetPlayerNameEx[playerid]);
    mysql_query(Query);
	mysql_store_result( );
	mysql_retrieve_row( );
	mysql_fetch_field_row( fetch,"RealSkin" );          SAVEREALSKIN[ playerid ] = strval(fetch);   	SetPlayerSkin(playerid, SAVEREALSKIN[ playerid ]);
    mysql_free_result();
I want all this script convert to sscanf because mysql crashing my server.
Reply
#2

Uhh dude.
MySQL is for saving things into a database.
Sscanf is for detecting player's IDs and many other things.
I think you're thinking of Dini or YINI.

Dini: (By DracoBlue)
https://sampforum.blast.hk/showthread.php?tid=50

Yini: (By ******(A.K.A. SA:MP God))
https://sampforum.blast.hk/showthread.php?tid=175565

Hope i could help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)