Problem Help please?
#1

OK
Before , My English is not good
I make this :
PHP код:
  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(string1sizeof(string1),"дфтймеъ %s дефтмд тм йгй дазшай фтймейеъ/дордм",(result),GetName(playerid)); 
This should make , Say I do /activity start BLA BLA
its will write : The Activity BLA BLA Activited by activity manager
But instead of its write : The Activity BLA activited by activity manager
If you do not understand yet another example :
I command /activity start KO SKO
Its write : The Activity SKO Activited by activity manager
help?
Reply
#2

Show your command
Reply
#3

Quote:
Originally Posted by lonako45
Посмотреть сообщение
This should make , Say I do /activity start BLA BLA
its will write : The Activity BLA BLA Activited by activity manager
But instead of its write : The Activity BLA activited by activity manager
If you do not understand yet another example :
I command /activity start KO SKO
Its write : The Activity SKO Activited by activity manager
help?
I'm sorry, I really can't understand
Reply
#4

PHP код:
        if(strcmp(tmp"start"true) == || strcmp(tmp"s"true) == 0)
        {
            if(
GetAdminLevel(playerid) < && !IsPlayerAdmin(playerid) && GetAdminSpay(playerid) < && GetTempAdminLevel(playerid) < 1) return SendClientMessage(playeridWhite"шоъ дрйдем щмк роелд");
            
tmp strtok(cmdtext,idx);
            if(!
strlen(tmp)) return SendClientMessage(playeridyellow"Activity [Start] [Activity Name] :цешъ щйоещ");
            if(
activity == 1) return SendClientMessage(playeridWhite"йщ фтймеъ оефтмъ , злд щъсъййн");
            if(
strcmp(tmp2""true) == || strcmp(tmp2""true) == 0)
            {
            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(string1sizeof(string1),"дфтймеъ %s дефтмд тм йгй дазшай фтймейеъ/дордм",(result),GetName(playerid));
            
SendClientMessageToAll(0xff0000ff,string1);
            
SendClientMessageToAll(0xff0000ff,"/activity[/a] лгй мшаеъ фчегеъ щафщшеък мтщеъ (ан аъд агойп/щзчп) дчщ аъ дфчегд");
            
activity 1
Reply
#5

HELP ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)