View difference between Paste ID: wARetcvT and 1qC22AZR
SHOW: | | - or go back to the newest paste.
1-
if      (strcmp(cmd, "/zspeed", true)==0)
1+
CMD:ttt(playerid, params[])
2-
        {
2+
{
3-
                tmp = strtok(cmdtext, idx);
3+
new tmp[30], hora; // to musi byc tablica skoro pozniej z tego tekst wysylasz (nie float)
4-
                if      (!strlen(tmp))
4+
if(sscanf(params,"d",hora)) return SendClientMessage(playerid, 0xFFFFFFAA, "USE: /ttt ");
5-
                {
5+
SetWorldTime(hora);
6-
                        SendClientMessage(playerid, 0xFFFFFFAA, "USE: /zspeed [speed]");
6+
format(tmp, sizeof(tmp), "Ahora la hora es: %d", hora);
7-
                        return 1;
7+
SendClientMessage(playerid, 0xFFFFFFAA, tmp);
8-
                }
8+
return 1;
9-
        Zspeed=floatstr(tmp);
9+
}