SetTimerEx Erorrs
#1

PHP код:
new ActivityJoin
Public:

PHP код:
forward ActivityJoin(playerid,const string[]);
public 
ActivityJoin(playerid,const string[])
        
format(string1sizeof(string1),"обчщ мдцишу мфтймеъ %s[%d] дщзчп",GetName(playerid),playerid);
        
SendAdminsMessage(0x8e0c9ff,string1);
        
SendClientMessage(playerid,0x8e0c9ff,"бйчщъ мдцишу мфтймеъ , злд щдазшай йцшу аеък");
        
ActivityJoin[playerid] = SetTimerEx("ActivityJoin",10000"is"playerid);
        return 
1;

Command:
PHP код:
 if(strcmp(tmp"Join"true) == || strcmp(tmp"j"true) == 0)
        {
        if(
activity == 0) return SendClientMessage(playerid,White,"айп фтймеъ оефтмъ");
        
format(string1sizeof(string1),"обчщ мдцишу мфтймеъ %s[%d] дщзчп",GetName(playerid),playerid);
        
SendAdminsMessage(0x8e0c9ff,string1);
        
SendClientMessage(playerid,0x8e0c9ff,"бйчщъ мдцишу мфтймеъ , злд щдазшай йцшу аеък");
        
ActivityJoin[playerid] = SetTimerEx("ActivityJoin",10000"is"playerid);
        return 
1;
        } 
Erorrs :
PHP код:
error 029invalid expressionassumed zero
error 029
invalid expressionassumed zero
error 001
expected token";"but found "]" 
line:
On command join line:
ActivityJoin[playerid] = SetTimerEx("ActivityJoin",1000, 0, "is", playerid);
Reply
#2

pawn Код:
new ActivityJoin[MAX_PLAYERS];

forward PublicActivityJoin(playerid,const string[]);
public PublicActivityJoin(playerid,const string[])
{
    format(string1, sizeof(string1),"обчщ мдцишу мфтймеъ %s[%d] дщзчп",GetName(playerid),playerid);
    SendAdminsMessage(0x8e0c9ff,string1);
    SendClientMessage(playerid,0x8e0c9ff,"бйчщъ мдцишу мфтймеъ , злд щдазшай йцшу аеък");
    ActivityJoin[playerid] = SetTimerEx("PublicActivityJoin",1000, 0, "is", playerid,"Yourstring");
    return 1;
}  

if(strcmp(tmp, "Join", true) == 0 || strcmp(tmp, "j", true) == 0)
{
    if(activity == 0) return SendClientMessage(playerid,White,"айп фтймеъ оефтмъ");

    format(string1, sizeof(string1),"обчщ мдцишу мфтймеъ %s[%d] дщзчп",GetName(playerid),playerid);
    SendAdminsMessage(0x8e0c9ff,string1);
    SendClientMessage(playerid,0x8e0c9ff,"бйчщъ мдцишу мфтймеъ , злд щдазшай йцшу аеък");
    ActivityJoin[playerid] = SetTimerEx("PublicActivityJoin",1000, 0, "is", playerid,"Yourstring");
    return 1;
}
It doesn't make much sense to me, but is this
Reply
#3

Erorrs :
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
error 001: expected token: ";", but found "]"
Reply
#4

Did you see my edit?

Ps: What exactly does this timer?
Reply
#5

i see ..
the timer this ..
I command /race
I teleport to race
and if i command /race again its write me "you need to wait 60 seconds"
...
Help ?
I make this :
PHP код:
forward PublicActivityJoin(playerid,const string[]);
public 
PublicActivityJoin(playerid,const string[])
{
        
format(string1sizeof(string1),"обчщ мдцишу мфтймеъ %s[%d] дщзчп",GetName(playerid),playerid);
        
SendAdminsMessage(0x8e0c9ff,string1);
        
SendClientMessage(playerid,0x8e0c9ff,"бйчщъ мдцишу мфтймеъ , злд щдазшай йцшу аеък");
        
ActivityJoin[playerid] = SetTimerEx("PublicActivityJoin",10000"is"playerid,"string1");
        return 
1;

PHP код:
    if(strcmp(tmp"Join"true) == || strcmp(tmp"j"true) == 0)
        {
        if(
activity == 0) return SendClientMessage(playerid,White,"айп фтймеъ оефтмъ");
        
format(string1sizeof(string1),"обчщ мдцишу мфтймеъ %s[%d] дщзчп",GetName(playerid),playerid);
        
SendAdminsMessage(0x8e0c9ff,string1);
        
SendClientMessage(playerid,0x8e0c9ff,"бйчщъ мдцишу мфтймеъ , злд щдазшай йцшу аеък");
        
ActivityJoin[playerid] = SetTimerEx("PublicActivityJoin",10000"is"playerid,"string1");
        return 
1;
        } 
Reply
#6

HELP !??!#@$
Reply
#7

OK OK now no error !
but
That mt command now :
PHP код:
        if(strcmp(tmp"Join"true) == || strcmp(tmp"j"true) == 0)
        {
        if(
activity == 0) return SendClientMessage(playerid,White,"айп фтймеъ оефтмъ");
        
Join SetTimerEx("ActivityJoin",60,0"is"playerid);
        if(
Join) return SendClientMessage(playerid,White,"бйчщъ лбш мдцишу мфтймеъ , бтег гчд ъелм мбчщ щеб");
        return 
1;
        } 
PHP код:
forward publicActivityJoin(playerid,const string[]);
public 
publicActivityJoin(playerid,const string[])
{
new 
string1[256];
format(string1sizeof(string1),"обчщ мдцишу мфтймеъ %s[%d] дщзчп",GetName(playerid),playerid);
SendAdminsMessage(0x8e0c9ff,string1);
SendClientMessage(playerid,0x8e0c9ff,"бйчщъ мдцишу мфтймеъ , злд щдазшай йцшу аеък");
return 
1;

Now it this should make if I make /a join
the command work
and if I write the command again it write me : You use in the command ! wait 60 seconds
but Instead that , if I write the command /a j it write me : You use in the command ! wait 60 seconds for the first time
Why??
Reply
#8

Remove The Line :

pawn Код:
Join = SetTimerEx("ActivityJoin",60,0, "is", playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)