MySQL question
#2

PHP код:
new query[100],PName[MAX_PLAYER_NAME],tmp[16];
GetPlayerName(playerid,PName,sizeof(PName));
format(query,sizeof(query),"SELECT Skin FROM comptes WHERE Nom = '%s'",PName);
mysql_query(query);
mysql_store_result();
// Needed to remplace for get skin value
mysql_fetch_field("Skin"tmp);
SetPlayerSkin(playeridstrval(tmp));
mysql_free_result(); 
Reply


Messages In This Thread
[Resolved]MySQL question - by iNoOx - 29.06.2012, 22:26
Re: MySQL question - by Shurik01 - 29.06.2012, 22:56
Re : MySQL question - by iNoOx - 29.06.2012, 23:25

Forum Jump:


Users browsing this thread: 1 Guest(s)