compatible to new include files
This commit is contained in:
@ -33,6 +33,7 @@
|
||||
*/
|
||||
|
||||
#include <amxmodx>
|
||||
#include <amxmisc>
|
||||
|
||||
#define MAX_MESSAGES 6
|
||||
#define X_POS -1.0
|
||||
@ -50,7 +51,7 @@ public plugin_init(){
|
||||
register_cvar("amx_freq_imessage","10")
|
||||
new lastinfo[8]
|
||||
get_localinfo("lastinfomsg",lastinfo,7)
|
||||
g_Current = strtonum(lastinfo)
|
||||
g_Current = str_to_int(lastinfo)
|
||||
set_localinfo("lastinfomsg","")
|
||||
}
|
||||
|
||||
@ -81,11 +82,11 @@ public setMessage(id,level,cid) {
|
||||
while(replace(g_Messages[g_MessagesNum],380,"\n","^n")){}
|
||||
new mycol[12]
|
||||
read_argv(2,mycol,11) // RRRGGGBBB
|
||||
g_Values[g_MessagesNum][2] = strtonum(mycol[6])
|
||||
g_Values[g_MessagesNum][2] = str_to_int(mycol[6])
|
||||
mycol[6] = 0
|
||||
g_Values[g_MessagesNum][1] = strtonum(mycol[3])
|
||||
g_Values[g_MessagesNum][1] = str_to_int(mycol[3])
|
||||
mycol[3] = 0
|
||||
g_Values[g_MessagesNum][0] = strtonum(mycol[0])
|
||||
g_Values[g_MessagesNum][0] = str_to_int(mycol[0])
|
||||
g_MessagesNum++
|
||||
new Float:freq_im = get_cvar_float("amx_freq_imessage")
|
||||
if ( freq_im > 0.0 ) set_task( freq_im ,"infoMessage",12345)
|
||||
@ -94,6 +95,6 @@ public setMessage(id,level,cid) {
|
||||
|
||||
public plugin_end(){
|
||||
new lastinfo[8]
|
||||
numtostr(g_Current,lastinfo,7)
|
||||
int_to_str(g_Current,lastinfo,7)
|
||||
set_localinfo("lastinfomsg",lastinfo)
|
||||
}
|
Reference in New Issue
Block a user