28.05.2016, 15:12
Quote:
This?
Код:
new GateObj; public OnGameModeInit() { GateObj = CreateDynamicObject(988, -488.89850, -562.67981, 25.35821, 0.00000, 0.00000, 0.00000); SetTimer("Gate", 500, true); return 1; } forward Gate(); public Gate() { for(new i = 0; i < MAX_PLAYERS; i ++) { if(!IsPlayerConnected(i)) continue; if(IsPlayerInRangeOfPoint(i, 7.0, 488.89850, -562.67981, 25.35821)) { new Name[24]; GetPlayerName(i, Name, 24); if(strfind(Name, "[BD]", true) != -1) MoveObject(GateObj, -488.89850, -562.67981, 35.35821, 5.0, 0.0, 0.0, 0.0); } else MoveObject(GateObj, -488.89850, -562.67981, 25.35821, 5.0, 0.0, 0.0, 0.0); } return 1; } |
Quote:
PHP код:
|
Код:
(17) : error 017: undefined symbol "GetPlayerPoolSize" (21) : warning 211: possibly unintended assignment (23) : error 017: undefined symbol "rx" (23) : warning 215: expression has no effect (23) : error 017: undefined symbol "rz" (23) : warning 215: expression has no effect (23) : error 001: expected token: ";", but found ")" (23) : fatal error 107: too many error messages on one line