Raised This Month: $32 Target: $400
 8% 

Pub symbol


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Azik
Member
Join Date: Aug 2011
Location: France
Old 05-01-2014 , 10:56   Pub symbol
Reply With Quote #1

Hello,

i have this error:


a line 537 is :
PHP Code:
g_PubTimer CreateTimer(300.0Timer_Pub_TIMER_REPEAT); 
My code :
PHP Code:
g_textmsg GetUserMessageId("TextMsg");
        
g_PubTimer CreateTimer(300.0Timer_Pub_TIMER_REPEAT);
        
HookUserMessage(g_textmsgUserMessageHooktrue); 
and :
PHP Code:
public Action:Timer_Pub(Handle:timer)
{
    switch (
GetRandomInt(12))
    {
        case 
1:
        {
            
CPrintToChatAll("%s Vous souhaitez créer votre propre job? Rendez-vous directement sur le forum !"LOGO);
        }
        case 
2:
        {
            
CPrintToChatAll("%s Devenez le plus riche, en achetant des euros depuis notre boutique RP!"LOGO);
        }    
    }

I don't understand my warning..

(I don't look to you my code because he has got 26.000 lines)

Bye
Azik is offline
Send a message via Skype™ to Azik
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 05-01-2014 , 13:06   Re: Pub symbol
Reply With Quote #2

Well that warning says, that you dont use variable g_PubTimer...

You assign value to variable g_PubTimer but you don't use that value, so it's a useless variable.
KissLick is offline
Azik
Member
Join Date: Aug 2011
Location: France
Old 05-01-2014 , 13:15   Re: Pub symbol
Reply With Quote #3

Quote:
Originally Posted by KissLick View Post
Well that warning says, that you dont use variable g_PubTimer...

You assign value to variable g_PubTimer but you don't use that value, so it's a useless variable.
exactly good! thanks you!
Azik is offline
Send a message via Skype™ to Azik
Reply



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 18:05.


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