Noob 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: Noob Question (
/showthread.php?tid=196801)
Noob Question -
marinov - 06.12.2010
pawn Код:
if(newkeys & KEY_CROUCH)
{
if IsPlayerInAnyVehicle(playerid)
{
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}
pawn Код:
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\Zombie_Outbreak_Original.pwn(3142) : error 001: expected token: "*then", but found "{"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: Noob Question - Larsey123IsMe - 06.12.2010
try that =/
pawn Код:
if(newkeys & KEY_CROUCH)
{
if IsPlayerInAnyVehicle(playerid)
{
RemovePlayerFromVehicle(playerid);
}
return 1;
}
Re: Noob Question -
marinov - 06.12.2010
didn't work lol
Re: Noob Question -
iggy1 - 06.12.2010
pawn Код:
if(newkeys & KEY_CROUCH)
{
if(IsPlayerInAnyVehicle(playerid))
{
RemovePlayerFromVehicle(playerid);
return 1;
}
}
Not touched indentation
Re: Noob Question -
Lynn - 06.12.2010
pawn Код:
if IsPlayerInAnyVehicle(playerid)
needs to be:
pawn Код:
if(IsPlayerInAnyVehicle(playerid))
Re: Noob Question -
WillyP - 06.12.2010
Lynn: lrn2readatopic. Iggy already posted a fix.
Re: Noob Question -
marinov - 06.12.2010
I got it now guys, thx