#1

One problem is that I would like a countdown with freeze disable
but the freeze is enable :/
pawn Код:
if(strcmp(cmdtext,"/countdown",true)==0)    {
    if(PlayerInfo[playerid][Level] >= 3) {
    CMDMessageToAdmins(playerid,"COUNTDOWN");
    cdt=6;
    CountTimer=SetTimer("countdown",1000,1);
    } else  {
    SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");   }
    return 1;   }
Reply
#2

edit topic:
Reply
#3

someone
Reply
#4

change this line:

pawn Код:
if (strcmp("/v", cmdtext, true, 10) == 0)
to
pawn Код:
if (strcmp("/v", cmdtext, true) != -1)
I also suggest reading this on proper strcmp usage....https://sampwiki.blast.hk/wiki/Strcmp
Reply
#5

Quote:
Originally Posted by cyber_punk
Посмотреть сообщение
change this line:

pawn Код:
if (strcmp("/v", cmdtext, true, 10) == 0)
to
pawn Код:
if (strcmp("/v", cmdtext, true) != -1)
I also suggest reading this on proper strcmp usage....https://sampwiki.blast.hk/wiki/Strcmp
that didnt work
Reply
#6

pawn Код:
if(!strcmp("/v", cmdtext))
if doesn't work try

pawn Код:
if(!strcmp(cmdtext, "/v"))
Reply
#7

ok but what about the countdown?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)