SA-MP Forums Archive
Problem Help please? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem Help please? (/showthread.php?tid=336965)



Problem Help please? - lonako45 - 24.04.2012

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?


Re: Problem Help please? - ViniBorn - 24.04.2012

Show your command


Re: Problem Help please? - Sasino97 - 24.04.2012

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


Re: Problem Help please? - lonako45 - 24.04.2012

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



Re: Problem Help please? - lonako45 - 24.04.2012

HELP ?