05.04.2010, 15:56
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { { if (! strcmp ("/ sluiten", cmdtext)) if (IsPlayerInRangeOfPoint (playerid, 7.0, 2354,3403320313, -650,77142333984, 127,85127258301)) ; MoveObject (movingdoor1, 2354,3403320313, -650,77142333984, 127,85127258301, 1); SendClientMessage (playerid, 0xEF994300, "De poort is gesloten."); ) return 1; ) if (! strcmp ("/ open", cmdtext)) ( if (IsPlayerInRangeOfPoint (playerid, 7.0, 2353,693359375, -650,77709960938, +127.85127258301)) ( MoveObject (movingdoor1 , 2353,693359375, -650,77709960938, 127,85127258301, 1); SendClientMessage (playerid, 0xEF994300, "De poort heeft geopend."); ) return 1; ) return 0; }
Код:
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(49) : warning 202: number of arguments does not match definition C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(49) : warning 202: number of arguments does not match definition C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(49) : warning 202: number of arguments does not match definition C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(160) : warning 202: number of arguments does not match definition C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(160) : warning 202: number of arguments does not match definition C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(160) : warning 202: number of arguments does not match definition C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(161) : error 036: empty statement C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(162) : warning 217: loose indentation C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(162) : warning 202: number of arguments does not match definition C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(162) : warning 202: number of arguments does not match definition C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(162) : warning 202: number of arguments does not match definition C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(163) : warning 217: loose indentation C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(164) : warning 217: loose indentation C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(164) : error 029: invalid expression, assumed zero C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(164 -- 165) : warning 215: expression has no effect C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(165) : error 001: expected token: ";", but found "return" C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(166) : warning 225: unreachable code C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(166) : warning 217: loose indentation C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(166) : error 029: invalid expression, assumed zero C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(166 -- 168) : warning 215: expression has no effect C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(168) : error 001: expected token: ";", but found "if" C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(169 -- 170) : error 029: invalid expression, assumed zero C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(170) : warning 202: number of arguments does not match definition C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(170) : error 029: invalid expression, assumed zero C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(170) : warning 215: expression has no effect C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(170) : error 001: expected token: ";", but found ")" C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(170) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 9 Errors.