[HELP] I cant fix that error!! :(
#5

You give that error because you put too many "return 1".
Put this:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if (PlayerToPoint(0.5, playerid, -2038.6663,-87.8214,35.3203)) return SetPlayerPos(playerid, -2038.6670,-87.1617,35.4203);
else SendClientMessage(playerid, 0x804040FF, "You're not near any door !");

if (PlayerToPoint(1, playerid, -2038.7289,-86.5928,35.4203)) return SetPlayerPos(playerid, -2038.5620,-88.3436,35.3203);
else SendClientMessage(playerid, 0x804040FF, "You're not near any door !");
}
return 1;
}
Reply


Messages In This Thread
[HELP] I cant fix that error!! :( - by Moustafa - 27.06.2009, 15:39
Re: [HELP] I cant fix that error!! :( - by Grim_ - 27.06.2009, 15:41
Re: [HELP] I cant fix that error!! :( - by farse - 27.06.2009, 15:42
Re: [HELP] I cant fix that error!! :( - by Moustafa - 27.06.2009, 15:45
Re: [HELP] I cant fix that error!! :( - by farse - 27.06.2009, 15:59
Re: [HELP] I cant fix that error!! :( - by Moustafa - 27.06.2009, 16:36
Re: [HELP] I cant fix that error!! :( - by ByFukara - 27.06.2009, 18:48

Forum Jump:


Users browsing this thread: 3 Guest(s)