Help it's really easy!! - 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: Help it's really easy!! (
/showthread.php?tid=337036)
Help it's really easy!! -
lonako45 - 24.04.2012
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
Re: Help it's really easy!! -
Pinguinn - 24.04.2012
I am confused by your code, but use
strtok
Re: Help it's really easy!! -
lonako45 - 24.04.2012
You can put it on my command ?