[HELP] Faction Vehicles - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Faction Vehicles (
/showthread.php?tid=499915)
[HELP] Faction Vehicles -
Orhun_Kaya - 10.03.2014
hello I'm coding new rp mod but this code doesn't work help please
pawn Код:
if(newstate == 2)
{
for(new s = 0;s<MAX_ARAC;s++)
{
new aracid = GetPlayerVehicleID(playerid);
if(AracBilgi[aracid][AracTip] == ARAC_FACTION && PlayerInfo[playerid][pFaction] != AracBilgi[aracid][AracFaction])
{
SendErrorMessage(playerid,"You don't have a keys.");
RemovePlayerFromVehicle(playerid);
}
return 1;
}}
Re: [HELP] Faction Vehicles -
iThePunisher - 10.03.2014
pawn Код:
if(newstate == 2)
{
for(new s = 0;s<MAX_ARAC;s++)
{
new aracid = GetPlayerVehicleID(playerid);
if(AracBilgi[aracid][AracTip] == ARAC_FACTION && PlayerInfo[playerid][pFaction] != AracBilgi[aracid][AracFaction])
{
SendErrorMessage(playerid,"You don't have a keys.");
RemovePlayerFromVehicle(playerid);
}
return 1;
}
Re: [HELP] Faction Vehicles -
Orhun_Kaya - 10.03.2014
Quote:
Originally Posted by iThePunisher
pawn Код:
if(newstate == 2) { for(new s = 0;s<MAX_ARAC;s++) { new aracid = GetPlayerVehicleID(playerid); if(AracBilgi[aracid][AracTip] == ARAC_FACTION && PlayerInfo[playerid][pFaction] != AracBilgi[aracid][AracFaction]) { SendErrorMessage(playerid,"You don't have a keys."); RemovePlayerFromVehicle(playerid); } return 1; }
|
doesn't work
Re: [HELP] Faction Vehicles -
yoran765 - 10.03.2014
Why are you creating a loop, when you're doing nothing with it...
Re: [HELP] Faction Vehicles -
JonathanFeitosa - 10.03.2014
pawn Код:
if(newstate == 2)
{
new aracid = GetPlayerVehicleID(playerid);
if(AracBilgi[aracid][AracTip] == ARAC_FACTION && PlayerInfo[playerid][pFaction] != AracBilgi[aracid][AracFaction]) // verify..
{
SendErrorMessage(playerid,"You don't have a keys.");
RemovePlayerFromVehicle(playerid);
}
return 0x01;
}
Organize your codes.
Re: [HELP] Faction Vehicles -
Orhun_Kaya - 10.03.2014
Quote:
Originally Posted by JonathanFeitosa
pawn Код:
if(newstate == 2) { new aracid = GetPlayerVehicleID(playerid); if(AracBilgi[aracid][AracTip] == ARAC_FACTION && PlayerInfo[playerid][pFaction] != AracBilgi[aracid][AracFaction]) // verify.. { SendErrorMessage(playerid,"You don't have a keys."); RemovePlayerFromVehicle(playerid); } return 0x01; }
Organize your codes.
|
doesn't work man :S
Re: [HELP] Faction Vehicles -
Orhun_Kaya - 10.03.2014
anyone?
Re: [HELP] Faction Vehicles -
JonathanFeitosa - 10.03.2014
pawn Код:
if(newstate == 2)
{
new aracid = GetPlayerVehicleID(playerid);
if(PlayerInfo[playerid][pFaction] != AracBilgi[aracid][AracFaction]) // verify..
{
SendErrorMessage(playerid,"You don't have a keys.");
RemovePlayerFromVehicle(playerid);
}
return 0x01;
}
// test
Re: [HELP] Faction Vehicles -
Orhun_Kaya - 10.03.2014
Quote:
Originally Posted by JonathanFeitosa
pawn Код:
if(newstate == 2) { new aracid = GetPlayerVehicleID(playerid); if(PlayerInfo[playerid][pFaction] != AracBilgi[aracid][AracFaction]) // verify.. { SendErrorMessage(playerid,"You don't have a keys."); RemovePlayerFromVehicle(playerid); } return 0x01; }
// test
|
doesn't work again
Re: [HELP] Faction Vehicles -
Orhun_Kaya - 11.03.2014
help