18.10.2009, 15:46
Guys, i'm a begginer scripter and i'd like to know what's wrong with this Filterscript:
#include <a_samp>
#include <a_vehicles>
public OnPlayerCommandText(playerid, cmdtext[])
{
if (IsPlayerInAnyVehicle(playerid))
{
if (strcmp("/nos", cmdtext, true, 4) == 0)
{
new Car = GetPlayerVehicleID(playerid), Model = GetVehicleModel(Car);
switch(Model)
{
case 446,432,448,452,424,453,454,461,462,463,468,471,43 0,472,449,473,481,484,493,509,510,521,538,522,523, 532,537,570,581,586,590,569,595,604,611: return 0;
}
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
return 1;
}
if (strcmp("/fix", cmdtext, true, 4) == 0)
{
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}
}
return 0;
}
I'm using v0.3a
#include <a_samp>
#include <a_vehicles>
public OnPlayerCommandText(playerid, cmdtext[])
{
if (IsPlayerInAnyVehicle(playerid))
{
if (strcmp("/nos", cmdtext, true, 4) == 0)
{
new Car = GetPlayerVehicleID(playerid), Model = GetVehicleModel(Car);
switch(Model)
{
case 446,432,448,452,424,453,454,461,462,463,468,471,43 0,472,449,473,481,484,493,509,510,521,538,522,523, 532,537,570,581,586,590,569,595,604,611: return 0;
}
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
return 1;
}
if (strcmp("/fix", cmdtext, true, 4) == 0)
{
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}
}
return 0;
}
I'm using v0.3a