Raised This Month: $ Target: $400
 0% 

Problem with float.inc


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheiOne
Member
Join Date: Mar 2017
Old 06-03-2018 , 20:55   Re: Problem with float.inc
Reply With Quote #8

@Natsheh

Thanks for the link on id.
How could I do that ? Like using an if() statement ?

@fysiks

I'm not using a colorChat() function. The original plugin is written for AMXX 1.8.2, and it had it's own colorChat() function, since I'm using AMXX 1.8.3 I completely removed that colorChat() function and replaced colorChat with client_print_color and also changed the parameters accordingly.

For example, this is from the original plugin:

Code:
colorChat(szPlayers[i], CHATCOLOR_GREEN, "%L", LANG_SERVER, "MM_TIME_PLAY_BONUS", iTime, iTmpCash)
Code:
MM_TIME_PLAY_BONUS = You are played $t%d h.$g in row and awarded $t%d$$g bonus
I've changed it to this which works:

Code:
client_print_color(szPlayers[i], print_team_default, "^4%L", LANG_SERVER, "MM_TIME_PLAY_BONUS", iTime, iTmpCash)
Code:
MM_TIME_PLAY_BONUS = You have played ^3%d h.^4 in a row, and awarded ^3%d$^4 bonus
But not this particular one:

Code:
    colorChat(id, CHATCOLOR_GREEN, "* %L", id, "YOUR_RANK_IS", iRankPos, iRankMax, izStats[STATS_KILLS], izStats[STATS_HITS], ((effec(izStats) + accuracy(izStats)) / 2))

->

Code:
    client_print_color(id, id, "^4* %L", id, "YOUR_RANK_IS", iRankPos, iRankMax, izStats[STATS_KILLS], izStats[STATS_HITS], ((effec(izStats) + accuracy(izStats)) / 2))

Thanks for the replies.
TheiOne 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 04:35.


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