AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [REMOVE PLEASE] Race Dont Work (https://forums.alliedmods.net/showthread.php?t=140221)

Stylaa 10-09-2010 18:21

[REMOVE PLEASE] Race Dont Work
 
EDIT : Found my Mistake


i wrote this Code
on 1 button i lunch

start_race()

and on the end button

finish_race(id)

and its displaying me


[ TAG ] Player hat das Rennen in Sekunden beendet
and not / Example

[ TAG ] Player hat das Rennen in 5 Sekunden beendet

PHP Code:

start_race()
{
    
Timer 0
    KzTimer 
true
    set_task
(1.0"TimerUp"0)
}

finish_race(id)
{
    static 
name[32];
    
get_user_name(idname31);
    
    
// Display to everyone with server language.
    
ColorChat(0RED"%s %s hat das Rennen in %i Sekunden beendet",PREFIX nameTimer);
}

public 
TimerUp()
{
    if(
KzTimer == true)
    {
        
set_task(1.0"TimerUp"0)
    }
    
Timer Timer 1    ->> My Mistake must be Timer++
  



Hunter-Digital 10-10-2010 04:32

Re: [REMOVE PLEASE] Race Dont Work
 
Timer = Timer + 1 is the same thing as Timer++, I can't see how that's your problem.

You should also post plugin's messages in english (even if plugin is originally in other language) so people would know what you are trying to do with that function.

Hunter-Digital 10-10-2010 04:35

Re: [REMOVE PLEASE] Race Dont Work
 
Timer = Timer + 1 is the same thing as Timer++, I can't see how that's your problem.

You should also post plugin's messages in english (even if plugin is originally in other language) so people would know what you are trying to do with that function.


All times are GMT -4. The time now is 10:16.

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