gamemodes\CGRP.pwn(16930) : warning 217: loose indentation gamemodes\CGRP.pwn(16930) : error 017: undefined symbol "distance" gamemodes\CGRP.pwn(16930) : warning 215: expression has no effect gamemodes\CGRP.pwn(16930) : error 001: expected token: ";", but found ")" gamemodes\CGRP.pwn(16930) : error 029: invalid expression, assumed zero gamemodes\CGRP.pwn(16930) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, .testlos = 1, .distance = 30.0);
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, .testlos = 1, .streamdistance = 30.0);
Scanff (latest version) Streamer (latest version) |
#include <a_samp> #include <streamer> #include <a_zones> #include <foreach> #include <yom_buttons> #include <djson> #include <progress> #include <YSI\y_timers> #include <ZCMD> #include <sscanf2> #include <audio> |
LSPDGate2 = CreateDynamicObject(971, 1588.6428222656, -1638.02734375, 15.240161895752, 0, 0, 181.03271484375);
GetDynamicObjectPos(LSPDGate2, Positions[4][0], Positions[4][1], Positions[4][2]);
else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[4][0], Positions[4][1], Positions[4][2]) < 15.0 ) { if(LSPDGate2Status == 0) { format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) ); ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); MoveDynamicObject(LSPDGate2, 1588.6501464844, -1638.0750732422, 6.2343215942383, 3); LSPDGate2Status = 1; } else { format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) ); ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); MoveDynamicObject(LSPDGate2, 1588.6428222656, -1638.02734375, 15.240161895752, 3); LSPDGate2Status = 0; } } else if(GetDistance( Positions[0][0], Positions[0][1], Positions[0][2], Positions[4][0], Positions[4][1], Positions[4][2]) < 15.0 ) { if(LSPDGate2Status == 0) { format( string, sizeof( string ), "* %s uses their remote to open the gates.", GetPlayerNameEx( playerid ) ); ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); MoveDynamicObject(LSPDGate2, 313.49652099609, -1482.9189453125, 26.682577133179, 3); LSPDGate2Status = 1; } else { format( string, sizeof( string ), "* %s uses their remote to close the gates.", GetPlayerNameEx( playerid ) ); ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); MoveDynamicObject(LSPDGate2, 320.40628051758, -1487.9129638672, 26.900407791138, 3); LSPDGate2Status = 0; }
new LSPDGate2; new LSPDGate2Status;