24.10.2012, 12:47
(
Последний раз редактировалось Fernado Samuel; 04.10.2013 в 18:29.
)
Hello
Removed
Removed
new query[256], pname[24];
GetPlayerName(playerid, pname, 24);
format(query,sizeof(query),"SELECT SavSkin FROM data WHERE UseSkin=1 AND user='%s LIMIT 1'",pname);
mysql_query(query);
mysql_store_result();
new skinstr[26];
if(mysql_retrieve_row())
{
mysql_fetch_field_row(skinstr, "SavSkin");
SetPlayerSkin(playerid,strval(skinstr));
mysql_free_result();
}
else
{
SetPlayerSkin(playerid,1); // Default Skin if query failed.
}
new query[256], pname[24];
GetPlayerName(playerid, pname, 24);
format(query,sizeof(query),"SELECT SavSkin FROM data WHERE UseSkin=1 AND user='%s LIMIT 1'",pname);
mysql_query(query);
mysql_store_result();
new skinstr[26];
if(mysql_retrieve_row())
{
mysql_fetch_field_row(skinstr, "SavSkin");
if(strval(skinstr) > 0)
{
SetPlayerSkin(playerid,strval(skinstr));
}
else
{
SetPlayerSkin(playerid,1); // default skin.
}
mysql_free_result();
}
else
{
SetPlayerSkin(playerid,1); // Default Skin if query failed.
}