26.09.2014, 18:19
error :
error 001: expected token: "#endif", but found "-end of file-"
error 001: expected token: "#endif", but found "-end of file-"
Код:
#include <a_samp> new door1,door2; #if defined FILTERSCRIPT forward sule(); public sule() { MoveObject(door1, 2932.32, -926.65, 12.81, 0.00, -90.00, 270.00); MoveObject(door2, 2931.96, -917.51, 10.69, 0.00, 0.00, 89.26); return 1; } public OnFilterScriptInit() { door1 = CreateObject(968, 2932.32, -926.65, 12.81, 0.00, -90.00, 270.00); door2 = CreateObject(969, 2931.96, -917.51, 10.69, 0.00, 0.00, 89.26); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/saar-ava", cmdtext, true, 10) == 0) { { if(IsPlayerAdmin(playerid)) MoveObject(door1, 2931.96, -917.51, 5.65); MoveObject(door2, 2931.96, -917.51, 5.65, 0.00, 0.00, 90.00); SetTimer("sule",4000,0); return 1; } return 0; }