27.06.2009, 15:39
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if (PlayerToPoint(0.5, playerid, -2038.6663,-87.8214,35.3203))
{
SetPlayerPos(playerid, -2038.6670,-87.1617,35.4203);
return 1;
}
SendClientMessage(playerid, 0x804040FF, "You're not near any door !");
return 1;
}
if (PlayerToPoint(1, playerid, -2038.7289,-86.5928,35.4203))
{
SetPlayerPos(playerid, -2038.5620,-88.3436,35.3203);
return 1;
}
SendClientMessage(playerid, 0x804040FF, "You're not near any door !");
return 1;
}
return 1; // <-------------- line 249
}
pawn Код:
C:\Documents and Settings\xxxxxxx\Desktop\Desktop\server\gamemodes\gmtest.pwn(249) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.