06.02.2015, 17:03
PHP код:
stock CheckAchievements(playerid)
{
new rows, fields;
new Query;
cache_get_data(rows, fields, MySQL);
if(rows)
{
cache_get_field_content(0, "Username", AInfo[playerid][Username], MySQL, 24);
AInfo[playerid][Ach1] = cache_get_field_content_int(0, "Ach1", MySQL);
AInfo[playerid][Ach2] = cache_get_field_content_int(0, "Ach2", MySQL);
AInfo[playerid][Ach3] = cache_get_field_content_int(0, "Ach3", MySQL);
AInfo[playerid][AchsCompleted] = cache_get_field_content_int(0, "AchsCompleted", MySQL);
}
else
{
mysql_format(MySQL, Query, 256, "INSERT INTO `"Achievements_"` (Username, Ach1, Ach2, Ach3, AchsCompleted) VALUES ('%s', '0', '0', '0', '0')", GetPName(playerid));
mysql_query(Query);
}
return 1;
}
due to i have r35 and its r38 so can anyone convert this r35
+rep who help me