OMFG THIS COMMAND!
#1

[pawno]if (strcmp("/paytoll", cmdtext, true, 10) == 0)
{
MoveObject(paytoll1,-5.88480759,-1363.50390625,17.0, 3);
}
[/pawno]


DEFINES:

new paytoll1;

When i do /paytoll the server say: UNKNOW COMMAND PLEASE HELP!!!!!
Reply
#2

You have to return 1 at the end of every command, or the server will say it is unknown.
Reply
#3

pawn Код:
if (strcmp("/paytoll", cmdtext, true, 10) == 0)
{
    MoveObject(paytoll1,-5.88480759,-1363.50390625,17.0, 3);
    return 1;
}
Reply
#4

Now works. LOL ty noob TOPIC but ty
Reply
#5

You should really learn what strcmp does and how to use it correctly...don't try to use a length for a command unless it's needed; else its completely useless, or could make the command dysfunction.

strcmp
Reply
#6

lol i didnt see the return 1; forgeted... anyways thanks
Reply
#7

-----------
Reply
#8

also you should do something like "GivePlayerMoney(id, -100);". I noticed its "/paytoll" but only has "Moveobject"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)