What's wrong with this FS? -
vascofg - 18.10.2009
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
Re: What's wrong with this FS? -
Tigerbeast11 - 18.10.2009
Do you get any errors? By the way, if you're using 0.3, it should be in the 0.3 section! Hence the name!
Re: What's wrong with this FS? -
vascofg - 18.10.2009
No i don't get any errors but the commands don't work.
Re: What's wrong with this FS? -
Julian2574 - 18.10.2009
Just put them into GM