Help it's really easy!!
#1

its my commands :
PHP код:
 if(strcmp(tmp, "start", true) == 0 || strcmp(tmp, "s", true) == 0)        {
            if(
GetAdminLevel(playerid) < 1 && !IsPlayerAdmin(playerid) && GetAdminSpay(playerid) < 1 && GetTempAdminLevel(playerid) < 1) return 
SendClientMessage(playerid, White, "шоъ дрйдем щмк роелд");
            if(
activity == 1) return SendClientMessage(playerid, White, "йщ фтймеъ оефтмъ , злд щъсъййн");
            new 
length = strlen(cmdtext);
             while ((
idx < length) && (cmdtext[idx] <= ' '))
            {
            
idx++;
            }
            new 
offset = idx;
            new 
result[256];
            while ((
idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
            
result[idx - offset] = cmdtext[idx];
            
idx++;            }
             
result[idx - offset] = EOS;
            
format(string1, sizeof(string1),"дфтймеъ %s дефтмд тм йгй дазшай фтймейеъ/дордм",(result),GetName(playerid));
            
SendClientMessageToAll(0xff0000ff,string1);
            
SendClientMessageToAll(0xff0000ff,"/activity[/a] лгй мшаеъ фчегеъ щафщшеък мтщеъ (ан аъд агойп/щзчп) дчщ аъ дфчегд");
            
activity = 1;
            
format(string1, sizeof(string1),"%s", (result));
            
ActiveName = string1;
            
format(string1, sizeof(string1),"%s", GetName(playerid));
            
PlayerName = string1;
            
ActQ = 1;
            return 
1;
            }
          } 
I want if i make /a s
It write Usge : Activity Start ActivityName
And no "The Activity Activited By activity manager
Help
Reply
#2

I am confused by your code, but use strtok
Reply
#3

You can put it on my command ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)