AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] [Deathrun Shop] Complie (https://forums.alliedmods.net/showthread.php?t=241639)

Dr Zayd 06-06-2014 19:46

[HELP] [Deathrun Shop] Complie
 
1 Attachment(s)
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 :)

fysiks 06-06-2014 22:43

Re: [HELP] [Deathrun Shop] Complie
 
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.

Amine Belokda 06-20-2016 23:03

Re: [HELP] [Deathrun Shop] Complie
 
This Plugin By : Li Hwak :v

siriusmd99 06-21-2016 05:00

Re: [HELP] [Deathrun Shop] Complie
 
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 );



Napoleon_be 06-21-2016 10:40

Re: [HELP] [Deathrun Shop] Complie
 
just find #pragma semicolon 1 @ the top of your code and just delete it.

Amine Belokda 06-29-2016 21:28

Re: [HELP] [Deathrun Shop] Complie
 
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 );



Elitcky 06-29-2016 21:41

Re: [HELP] [Deathrun Shop] Complie
 
Quote:

Originally Posted by Amine Belokda (Post 2429237)
This Plugin By : Li Hwak :v

im sure you can get a warning for this post in a thread from the year 2014...

OciXCrom 06-30-2016 18:35

Re: [HELP] [Deathrun Shop] Complie
 
I'm voting for ban acutally. This is probably his 100th idiotic comment.

Napoleon_be 07-01-2016 04:05

Re: [HELP] [Deathrun Shop] Complie
 
Quote:

Originally Posted by OciXCrom (Post 2432404)
I'm voting for ban acutally. This is probably his 100th idiotic comment.

^


All times are GMT -4. The time now is 09:39.

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