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));
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? |
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, "шоъ дрйдем щмк роелд");
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, yellow, "Activity [Start] [Activity Name] :цешъ щйоещ");
if(activity == 1) return SendClientMessage(playerid, White, "йщ фтймеъ оефтмъ , злд щъсъййн");
if(strcmp(tmp2, "", true) == 0 || 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(string1, sizeof(string1),"дфтймеъ %s дефтмд тм йгй дазшай фтймейеъ/дордм",(result),GetName(playerid));
SendClientMessageToAll(0xff0000ff,string1);
SendClientMessageToAll(0xff0000ff,"/activity[/a] лгй мшаеъ фчегеъ щафщшеък мтщеъ (ан аъд агойп/щзчп) дчщ аъ дфчегд");
activity = 1;