Posts: 171
Threads: 50
Joined: Jul 2009
Reputation:
0
when i have a CMD made with x y and z stuff,
and i do: example: 111.111 222.222 333.333
he only do: 111 222 333 and not 111.111 222.222 333.333
so he don't get the stuff after the points
how to change that he gets it after the points to?
Posts: 2,593
Threads: 34
Joined: Dec 2007
Use floatstr(string); not strval(string);
Posts: 2,593
Threads: 34
Joined: Dec 2007
Код:
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
new Float:a1 = floatstr(tmp);
tmp = strtok(cmdtext, idx);
new Float:b2 = floatstr(tmp);
tmp = strtok(cmdtext, idx);
new Float:c3 = floatstr(tmp);
tmp = strtok(cmdtext, idx);
new world = strval(tmp);
and
Код:
format(string, sizeof(string), "-OperServ- Houseid %d it's interior has been set to %f, %f world %f and %d by admin %s", giveplayerid, a1, b2, c3, world, PlayerName[playerid]);
Posts: 171
Threads: 50
Joined: Jul 2009
Reputation:
0
somebody already made it with dcmd,
but thanks for helping!