14.08.2011, 07:36
Please help to solve this problem:
I found it in "useful snippets" but something went wrong while compiling.
Here's the code that I found already with my coords:
So that's what I got after compiling:
I found it in "useful snippets" but something went wrong while compiling.
Here's the code that I found already with my coords:
Код:
SetTimer("AreaCheck", 1000, 1); // The function AreaCheck(); { for(new i=0; i<MAX_PLAYERS; i++ ) { if(IsPlayerConnected(i) && IsPlayerInArea(i, 1097.29, 1177.29, 1204.25, 1354.55) && !IsPlayerAdmin(i)) // CHECK: If the player is a admin, if the player is in the area { // He's not. SendClientMessage(i, YOURCOLOR, "You are not allowed to enter the ADMIN area."); /* Do with him whatever you want */ } } }
Код:
C:\Documents and Settings\Admin\Рабочий стол\Сервер 0.3с тест (новый)\gamemodes\uchiha_drift.pwn(884) : error 029: invalid expression, assumed zero C:\Documents and Settings\Admin\Рабочий стол\Сервер 0.3с тест (новый)\gamemodes\uchiha_drift.pwn(884) : error 001: expected token: ")", but found ";" C:\Documents and Settings\Admin\Рабочий стол\Сервер 0.3с тест (новый)\gamemodes\uchiha_drift.pwn(889) : error 029: invalid expression, assumed zero C:\Documents and Settings\Admin\Рабочий стол\Сервер 0.3с тест (новый)\gamemodes\uchiha_drift.pwn(889) : warning 215: expression has no effect C:\Documents and Settings\Admin\Рабочий стол\Сервер 0.3с тест (новый)\gamemodes\uchiha_drift.pwn(889) : error 001: expected token: ";", but found ")" C:\Documents and Settings\Admin\Рабочий стол\Сервер 0.3с тест (новый)\gamemodes\uchiha_drift.pwn(889) : error 029: invalid expression, assumed zero C:\Documents and Settings\Admin\Рабочий стол\Сервер 0.3с тест (новый)\gamemodes\uchiha_drift.pwn(889) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.