Raised This Month: $ Target: $400
 0% 

client_print problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
da_ciouzan_oan
Junior Member
Join Date: Jun 2010
Old 11-22-2011 , 11:36   Re: client_print problem
Reply With Quote #9

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,($ 
da_ciouzan_oan is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode