What's wrong with this FS?
#1

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
Reply


Messages In This Thread
What's wrong with this FS? - by vascofg - 18.10.2009, 15:46
Re: What's wrong with this FS? - by Tigerbeast11 - 18.10.2009, 15:49
Re: What's wrong with this FS? - by vascofg - 18.10.2009, 15:58
Re: What's wrong with this FS? - by Julian2574 - 18.10.2009, 17:03

Forum Jump:


Users browsing this thread: 1 Guest(s)