Big noob alert
#10

i just copied this command and put it in a script real quick and it worked, are you sure its not in any callbacks like
BAD EXAMPLE:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
COMMAND:fixvehicle(playerid, params[])
{
    #pragma unused params

    new vid = GetPlayerVehicleID(playerid);
    RepairVehicle(vid);
   
    SendClientMessage(playerid, COLOR_WHITE, "NOTE » Your vehicle has been repaired!");
   
    return 1;
}
    return 0;
}
GOOD EXAMPLE
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return 0;
}
COMMAND:fixvehicle(playerid, params[])
{
    #pragma unused params

    new vid = GetPlayerVehicleID(playerid);
    RepairVehicle(vid);
   
    SendClientMessage(playerid, COLOR_WHITE, "NOTE » Your vehicle has been repaired!");
   
    return 1;
}
You sure its the good example?
Reply


Messages In This Thread
Big noob alert - by _rAped - 02.01.2011, 01:11
Re: Big noob alert - by cessil - 02.01.2011, 01:15
Re: Big noob alert - by _rAped - 02.01.2011, 01:15
Re: Big noob alert - by blackwave - 02.01.2011, 01:17
Re: Big noob alert - by _rAped - 02.01.2011, 01:18
Re: Big noob alert - by DarrenReeder - 02.01.2011, 01:45
Re: Big noob alert - by Anthonyx3' - 02.01.2011, 02:04
Re: Big noob alert - by DRIFT_HUNTER - 02.01.2011, 02:28
Re: Big noob alert - by _rAped - 02.01.2011, 02:41
Re: Big noob alert - by [WF]Demon - 02.01.2011, 03:21

Forum Jump:


Users browsing this thread: 3 Guest(s)