Raised This Month: $ Target: $400
 0% 

[REMOVE PLEASE] Race Dont Work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stylaa
Senior Member
Join Date: Oct 2009
Location: Flensburg, Germany
Old 10-09-2010 , 18:21   [REMOVE PLEASE] Race Dont Work
Reply With Quote #1

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++
  

__________________

Some People brings Happynes by Coming
Some by Going

Last edited by Stylaa; 10-09-2010 at 19:24. Reason: Found my Mistake
Stylaa is offline
Send a message via ICQ to Stylaa
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-10-2010 , 04:32   Re: [REMOVE PLEASE] Race Dont Work
Reply With Quote #2

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 is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-10-2010 , 04:35   Re: [REMOVE PLEASE] Race Dont Work
Reply With Quote #3

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 is offline
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 10:16.


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