Really need help!
#1

Almost finished engine, but I have one more problem. When I do /engine in a "factioncar" it says "SERVER: Unknown command"

Code:

pawn Код:
if(strcmp(cmd, "/engine", true) == 0)
{
new carid = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_RED, "You aren't in a vehicle!");
return 1;
}
if(CInfo[carid-1][cEngine] == 0)
{
OnPlayerCommandText(playerid, "/me spins the key and successfully starts the engine");
TogglePlayerControllable(playerid, 1);
CInfo[carid-1][cEngine] = 1;
return 1;
}
if(CInfo[carid-1][cEngine] == 1)
{
OnPlayerCommandText(playerid, "/me spins the key and shuts off the engine");
TogglePlayerControllable(playerid, 0);
CInfo[carid-1][cEngine] = 0;
return 1;
}
if(FactionCar[carid][fcFaction] != PlayerInfo[playerid][pFaction])
{
OnPlayerCommandText(playerid, "/me tries to start the engine, but fails");
SendClientMessage(playerid, COLOR_GREY, "You don't have the keys for this vehicle!");
return 1;
}
if(FactionCar[carid][fcEngine] == 0)
{
OnPlayerCommandText(playerid, "/me spins the key and successfully starts the engine");
TogglePlayerControllable(playerid, 1);
FactionCar[carid][fcEngine] = 1;
return 1;
}
if(FactionCar[carid][fcEngine] == 1)
{
OnPlayerCommandText(playerid, "/me spins the key and shuts off the engine");
TogglePlayerControllable(playerid, 0);
FactionCar[carid][fcEngine] = 0;
}
return 1;
}
Reply
#2

same problem, and SAME solution as your other post...

http://forum.sa-mp.com/index.php?topic=174770.0
Reply
#3

You really need to shut up
Reply
#4

LMFAO ... ok NOW im enjoying this...

You can get pissy ALLL you want ..your problem is STILL the SAME, you just added more 'issues' to it from your previous topic.

If you Do:

Код:
if(IMaeRepeatMistakes == yes)
{
//Result return 1;
}
if(IMaeRepeatMistakes == no)
{

}
if(IMaeRepeatMistakes == maybe)
{
//Result return 1;
}
Ill say it again ... Its your IF statements... Try and Merge them

Код:
if(IMakeRepeatMistakes > yes && ImAnIdiot > yes)
{
// Ill Never Learn
return 1;
}
Reply
#5

Quote:
Originally Posted by Bayler
LMFAO ... ok NOW im enjoying this...

You can get pissy ALLL you want ..your problem is STILL the SAME, you just added more 'issues' to it from your previous topic.

If you Do:

Код:
if(IMaeRepeatMistakes == yes)
{
//Result return 1;
}
if(IMaeRepeatMistakes == no)
{

}
if(IMaeRepeatMistakes == maybe)
{
//Result return 1;
}
Ill say it again ... Its your IF statements... Try and Merge them

Код:
if(IMakeRepeatMistakes > yes && ImAnIdiot > yes)
{
// Ill Never Learn
return 1;
}
Rofl

Ill try this tomorrow
Reply
#6

lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)