Raised This Month: $ Target: $400
 0% 

[HELP] [Deathrun Shop] Complie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr Zayd
Senior Member
Join Date: Jun 2014
Location: forums.alliedmods.net
Old 06-06-2014 , 19:46   [HELP] [Deathrun Shop] Complie
Reply With Quote #1

Hello
I'm New In Allied-Modders
and i have a Probléme With Deathrun shop
- I Add :
Code:
/*      HUD PERMANENT INFO      */
public ShowHud(task)
{
    new id = task - TASK_SHOW_HUD
    
    if(!is_user_alive(id) );
        return;
    
    set_hudmessage(0, 255, 0, 0.02, 0.33, 0, 0.0, 0.3, 0.0, 0.0)
    ShowSyncHudMsg(id, g_msgHudSync,"[Grade : ]^n[XP : ]^n[Level : ^4^3]^n[Points : %i]", gKillerPoints[ id ] )
    
    set_task( 0.1, "ShowHud", TASK_SHOW_HUD + id );
}
Please Help Me :
It Say In Probléme :
Quote:
Deathrun_Shopv2.sma(780) : error 001: expected token: ";", but found "if"
Deathrun_Shopv2.sma(780) : error 036: empty statement
Deathrun_Shopv2.sma(781) : warning 217: loose indentation
Deathrun_Shopv2.sma(783) : warning 225: unreachable code
Deathrun_Shopv2.sma(783) : warning 217: loose indentation
Deathrun_Shopv2.sma(784) : error 001: expected token: ";", but found "-identifier-"
Deathrun_Shopv2.sma(786) : error 001: expected token: ";", but found "-identifier-"

4 Errors.
Compile failed!
And Thnx
Attached Files
File Type: sma Get Plugin or Get Source (Deathrun_Shop.sma - 667 views - 36.4 KB)

Last edited by Dr Zayd; 06-06-2014 at 19:48.
Dr Zayd is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-06-2014 , 22:43   Re: [HELP] [Deathrun Shop] Complie
Reply With Quote #2

The error is because the plugin requires semicolons after each instruction. Also, you don't use a semicolon directly after an if conditional.

Also, update your topic title to be more descriptive (this is a forum rule). "[HELP]" is redundant. All posts here are asking for help. "[Deathrun Shop]" is irrelevant to your issue.
__________________

Last edited by fysiks; 06-06-2014 at 22:46.
fysiks is offline
Amine Belokda
Senior Member
Join Date: Oct 2015
Location: ML_NOT_FOUND
Old 06-20-2016 , 23:03   Re: [HELP] [Deathrun Shop] Complie
Reply With Quote #3

This Plugin By : Li Hwak :v
__________________
Amine Belokda is offline
Send a message via MSN to Amine Belokda
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 06-21-2016 , 05:00   Re: [HELP] [Deathrun Shop] Complie
Reply With Quote #4

As fysiks sayd , you must put ";" at the end of each instruction (except if,while and for loop)

And also use task without task show hud when you set new task.

Like this:
PHP Code:
public ShowHud(const task)
{
    new 
id task TASK_SHOW_HUD;
    
    if(!
is_user_alive(id) )
        return;
    
    
set_hudmessage(025500.020.3300.00.30.00.0);
    
ShowSyncHudMsg(idg_msgHudSync,"[Grade : ]^n[XP : ]^n[Level : ^4^3]^n[Points : %i]"gKillerPointsid ] );
    
    
set_task0.1"ShowHud"task );


Last edited by siriusmd99; 06-21-2016 at 05:07.
siriusmd99 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 06-21-2016 , 10:40   Re: [HELP] [Deathrun Shop] Complie
Reply With Quote #5

just find #pragma semicolon 1 @ the top of your code and just delete it.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Amine Belokda
Senior Member
Join Date: Oct 2015
Location: ML_NOT_FOUND
Old 06-29-2016 , 21:28   Re: [HELP] [Deathrun Shop] Complie
Reply With Quote #6

I Fix your Problem
Delet You Public public ShowHud(task)
And Past This ( Fixed )
PHP Code:
public ShowHud(task){
    new 
id task TASK_SHOW_HUD
    
    
if(!is_user_alive(id) );
        return;
        {
    
    
set_hudmessage(025500.020.3300.00.30.00.0)
    
ShowSyncHudMsg(idg_msgHudSync,"[Grade : ]^n[XP : ]^n[Level : ^4^3]^n[Points : %i]"gKillerPointsid ] )
    
    
set_task0.1"ShowHud"TASK_SHOW_HUD id );

__________________
Amine Belokda is offline
Send a message via MSN to Amine Belokda
Elitcky
AlliedModders Donor
Join Date: Jun 2016
Location: Antofagasta, Chile
Old 06-29-2016 , 21:41   Re: [HELP] [Deathrun Shop] Complie
Reply With Quote #7

Quote:
Originally Posted by Amine Belokda View Post
This Plugin By : Li Hwak :v
im sure you can get a warning for this post in a thread from the year 2014...
__________________
Elitcky is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-30-2016 , 18:35   Re: [HELP] [Deathrun Shop] Complie
Reply With Quote #8

I'm voting for ban acutally. This is probably his 100th idiotic comment.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 07-01-2016 , 04:05   Re: [HELP] [Deathrun Shop] Complie
Reply With Quote #9

Quote:
Originally Posted by OciXCrom View Post
I'm voting for ban acutally. This is probably his 100th idiotic comment.
^
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 09:39.


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