Redefinering?
#1

How to make Define like this
#define Last_UpDate "17:77"
and some function re define it how?
Reply
#2

Your define:
pawn Код:
#define Last_UpDate "17:77"
To redefine just use a check and undef.
pawn Код:
#if defined Last_UpDate
    #undef Last_UpDate
    #define Last_UpDate "16:77"
#endif
Will set it to 16.
Reply
#3

Yes but i want put there Time the timer give Time there
Reply
#4

Quote:
Originally Posted by whitedragon
Посмотреть сообщение
Yes but i want put there Time the timer give Time there
if you want to use it while running you need to use an array

pawn Код:
new Time[] = "17:77";
//in the timer
    gettime(Time[0], Time[1]); //gets the current hour and minutes
    format(Time, sizeof Time, "%02d:%02d", Time[0], Time[1]); //stroes it in Time
Hope I didnt misunderstood you ^^
Reply
#5

Ok... I think thats fine
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)