This code is working ..
Code:
public task()
{
server_print("%s: %s", ACHIEVEMENT_GlobalInfo[ 3 ][ ACHIEVEMENT_Name ], ACHIEVEMENT_GlobalInfo[ 3 ][ ACHIEVEMENT_Message ])
client_print(0, print_chat, "%s: %s", ACHIEVEMENT_GlobalInfo[ 3 ][ ACHIEVEMENT_Name ], ACHIEVEMENT_GlobalInfo[ 3 ][ ACHIEVEMENT_Message ])
}
I changed the function.. I put the code from the task inside my function and it's not working, is the same !@*$&^ code and it's not working. Wtf is going on here?! so annoying ...
Code:
public ACHIEVEMENT_Earn(id, id_medalie)
{
/*new nume_player[ 32 ], players[ 32 ], num, nume_medalie[32], mesaj_medalie[96]
get_players(players, num)
get_user_name(id, nume_player, charsmax(nume_player))
copy(nume_medalie, charsmax(nume_medalie), ACHIEVEMENT_GlobalInfo[ 3 ][ ACHIEVEMENT_Name ])
copy(mesaj_medalie, charsmax(mesaj_medalie), ACHIEVEMENT_GlobalInfo[ 3 ][ ACHIEVEMENT_Message ])
for(new i; i < num; i++)
{
if(is_user_connected(players[ i ]))
{
if(players[ i ] == id)
{
color_chat(id, "!y[AC] You earned the !g%s!y achievement for !g^"%s^"", nume_medalie, mesaj_medalie)
continue;
}
color_chat(players[ i ], "!y[AC] !g%s has earned the !g%s!y achievement !", nume_player, nume_medalie)
}
}
log_amx("[AC] %s has earned the ^"%s^" achievement !", nume_player, nume_medalie)
//emit_sound(id, CHAN_STATIC, "achievements/achievement_earned.wav", 1.5, ATTN_NORM, 0, PITCH_NORM)
ACHIEVEMENT_PlayerInfo[ id ][ id_medalie ] = 1*/
server_print("%s: %s", ACHIEVEMENT_GlobalInfo[ 3 ][ ACHIEVEMENT_Name ], ACHIEVEMENT_GlobalInfo[ 3 ][ ACHIEVEMENT_Message ])
client_print(0, print_chat, "%s: %s", ACHIEVEMENT_GlobalInfo[ 3 ][ ACHIEVEMENT_Name ], ACHIEVEMENT_GlobalInfo[ 3 ][ ACHIEVEMENT_Message ])
}
This is printed into chat from the task:
Code:
Life Hater: Sinucide-te o data
This is printed into chat from my function:
Code:
|xtplhd`\XTPLHD@<840,($