Whats wrong with this?
#1

pawn Код:
dcmd_open(playerid, params[])
{
    if(strcmp(params,"lvpd",true) == 0) return SendClientMessage(playerid,0xFF0000FF,"Usage: /open [gate]");
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid, 10.0, 2294.230713, 2499.273682, 5.752781))
    {
    MoveObject(lvgate1,2294.230713, 2507.217041, 5.752781,2);
    SetTimer("LVGates1",9000,0);
    }
    else
    {
    if(IsPlayerInRangeOfPoint(playerid, 10.0, 2334.719971, 2443.472900, 8.230819))
    {
    MoveObject(lvgate2,2330.758057, 2436.558838, 8.230819,2);
    SetTimer("LVGates2",9000,0);
    }
}
    }
}
    return 1;
}
Im new to using params like that, So anyway,
If i type /open, It sends usage, If i type /open lvpd, It sends usage,
But if i type /open isjdfioujs or anything /open sodfjso just anything after /open, It will open,
Why?
Reply


Messages In This Thread
Whats wrong with this? - by Torran - 07.02.2010, 00:12
Re: Whats wrong with this? - by Miguel - 07.02.2010, 00:22
Re: Whats wrong with this? - by Torran - 07.02.2010, 00:23
Re: Whats wrong with this? - by mansonh - 07.02.2010, 00:23
Re: Whats wrong with this? - by Torran - 07.02.2010, 00:24
Re: Whats wrong with this? - by mansonh - 07.02.2010, 00:28
Re: Whats wrong with this? - by Torran - 07.02.2010, 00:30
Re: Whats wrong with this? - by mansonh - 07.02.2010, 00:35
Re: Whats wrong with this? - by Torran - 07.02.2010, 16:40
Re: Whats wrong with this? - by MadeMan - 07.02.2010, 16:46

Forum Jump:


Users browsing this thread: 1 Guest(s)