16.08.2015, 08:04
Some bug with reason 015
public OnPlayerRequestSpawn(playerid)
{
mysql_format(sqldb, query, sizeof(query), "SELECT * FROM accounts WHERE accname = '%e' LIMIT 0,1", GetName(playerid));
mysql_tquery(sqldb, query, "duodamginklus", "i", playerid);
return 1;
}
PUBLIC: duodamginklus(playerid)
{
new rows = mysql_num_rows();
if(rows)
{
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g1"),cache_get_field_content_int(0, "a1"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g2"),cache_get_field_content_int(0, "a2"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g3"),cache_get_field_content_int(0, "a3"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g4"),cache_get_field_content_int(0, "a4"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g5"),cache_get_field_content_int(0, "a5"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g6"),cache_get_field_content_int(0, "a6"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g7"),cache_get_field_content_int(0, "a7"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g8"),cache_get_field_content_int(0, "a8"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g9"),cache_get_field_content_int(0, "a9"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g10"),cache_get_field_content_int(0, "a10"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g11"),cache_get_field_content_int(0, "a11"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g12"),cache_get_field_content_int(0, "a12"));
}
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
mysql_format(sqldb, query, sizeof(query), "SELECT * FROM accounts WHERE accname = '%e' LIMIT 0,1", GetName(playerid));
mysql_tquery(sqldb, query, "duodamginklus", "i", playerid);
return 1;
}
PUBLIC: duodamginklus(playerid)
{
new rows = mysql_num_rows();
if(rows)
{
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g1"),cache_get_field_content_int(0, "a1"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g2"),cache_get_field_content_int(0, "a2"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g3"),cache_get_field_content_int(0, "a3"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g4"),cache_get_field_content_int(0, "a4"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g5"),cache_get_field_content_int(0, "a5"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g6"),cache_get_field_content_int(0, "a6"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g7"),cache_get_field_content_int(0, "a7"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g8"),cache_get_field_content_int(0, "a8"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g9"),cache_get_field_content_int(0, "a9"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g10"),cache_get_field_content_int(0, "a10"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g11"),cache_get_field_content_int(0, "a11"));
GivePlayerWeapon(playerid,cache_get_field_content_ int(0, "g12"),cache_get_field_content_int(0, "a12"));
}
return 1;
}