Pretty Simple Question - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pretty Simple Question (
/showthread.php?tid=268041)
Please help with this issue -
HayZatic - 10.07.2011
Okay, So heres the problem, Removing the skin part gives me a bunch of errors. 26 of them. Probally indent problem.
Can someone Remove it?
Код:
if(strcmp("/gate", cmdtext, true, 8) == 0)
{
if(PlayerToPoint(25, playerid, 281.667694, 1821.519043, 16.701317))
{
if(GetPlayerSkin(playerid) == 287)
if(GetPlayerSkin(playerid) == 118)
{
if(a51_liftstatus == 1)
{
MoveObject(a51_lift1, 281.667694, 1821.519043, 23.451214, 4);
MoveObject(a51_lift2, 290.248383, 1821.519043, 23.451214, 4);
MoveObject(a51_lift3, 275.712830, 1821.519043, 23.451214, 4);
MoveObject(a51_lift4, 296.168213, 1821.519043, 23.451214, 4);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "* Area51 Lift Going Up");
a51_liftstatus = 0;
}
else if(a51_liftstatus == 0)
{
MoveObject(a51_lift1, 281.667694, 1821.519043, 16.701317, 4);
MoveObject(a51_lift2, 290.248383, 1821.519043, 16.701317, 4);
MoveObject(a51_lift3, 275.712830, 1821.519043, 16.701317, 4);
MoveObject(a51_lift4, 296.168213, 1821.519043, 16.701317, 4);
SendClientMessage(playerid, COLOR_LIGHTRED, "* Area51 Lift Going Down");
a51_liftstatus = 1;
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, " You are not a Soldier");
}
}
return 1;
}
Remove
Код:
if(GetPlayerSkin(playerid) == 287)
if(GetPlayerSkin(playerid) == 118)
Re: Pretty Simple Question -
Adil - 10.07.2011
Provide error lines.
Re: Pretty Simple Question -
HayZatic - 11.07.2011
if(GetPlayerSkin(playerid) == 287)
if(GetPlayerSkin(playerid) == 11
This is where the Problem is being Created.
Re: Pretty Simple Question -
Adil - 11.07.2011
I don't know what are you trying to do with two skins? Are you trying to make it so you can use gate if you have one of those skins? Then you use this instead of those two:
pawn Код:
if(GetPlayerSkin(playerid) == 287 || GetPlayerSkin(playerid) == 118)
Re: Pretty Simple Question -
HayZatic - 11.07.2011
Hey thank you for the respond and ill keep that in mind next time but i just completely removed it! Thanks Though!