CMD:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 1833.1716,-1842.4929,13.5781))
{
SendClientMessage(playerid,COLOR_WHITE,\"{ffffff}Ha kiakarsz lépni használd az {fc0000}/exit{ffffff} parancsot!\");
SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
SetPlayerInterior(playerid, 17);
}
else SendClientMessage(playerid,COLOR_RED,\"Nem vagy épület elött!\");
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 1555.3004,-1675.6161,16.1953))
{
SendClientMessage(playerid,COLOR_WHITE,\"{ffffff}Ha kiakarsz lépni használd az {fc0000}/exit{ffffff} parancsot!\");
SetPlayerPos(playerid,288.745971,169.350997,1007.171875);
SetPlayerInterior(playerid, 3);
}
return 1;
}
CMD:exit(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, -25.9881,-188.2596,1003.5469))
{
SendClientMessage(playerid,COLOR_GREEN,\"Eladó: Köszönjük, hogy nálunk vásárolt!\");
SetPlayerPos(playerid,1833.1716,-1842.4929,13.5781);
SetPlayerInterior(playerid, 0);
}
else SendClientMessage(playerid,COLOR_RED,\"Nem álsz semmilyen épületben!\");
return 1;
}
Hibák:
C:\\Documents and Settings\\Administrator\\Desktop\\sszerv\\pawno\\gazsi.pwn(231) : warning 225: unreachable code
C:\\Documents and Settings\\Administrator\\Desktop\\sszerv\\pawno\\gazsi.pwn(231) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\Administrator\\Desktop\\sszerv\\pawno\\gazsi.pwn(231) : error 017: undefined symbol \"cmd_exit\"
C:\\Documents and Settings\\Administrator\\Desktop\\sszerv\\pawno\\gazsi.pwn(231) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\Administrator\\Desktop\\sszerv\\pawno\\gazsi.pwn(231) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Mi a baj?