22.11.2012, 05:46
(
Последний раз редактировалось showarn; 22.11.2012 в 06:38.
)
Hello ive just updated my server with the latest streamer plugin
i had alot of problems since iam new and trying to learn this so i had this errors
so i was thinking wtf? so i started to look into Streamer.inc file and looked @ the latest one and the oldest one and i figured out that the old one used "distance" and the latest one used "Streamdistance"
so i went to the line (16930)
so i changed this line
To
and now it worked fine! i write all this so you now what i did before i got this error that iam about to explain
so all worked now i started the server and i went online on my admin character and i realized that all my objects was gone? like lspd gate etc etc if any1 have experiance about why this happens please help me
(i get no errors when i compile in pawno)
here the plugins that i updated atm
and this is all plugins i have included
LSPDGATE!!!
i had alot of problems since iam new and trying to learn this so i had this errors
Код:
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
so i went to the line (16930)
so i changed this line
Код:
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);
so all worked now i started the server and i went online on my admin character and i realized that all my objects was gone? like lspd gate etc etc if any1 have experiance about why this happens please help me
(i get no errors when i compile in pawno)
here the plugins that i updated atm
Quote:
Scanff (latest version) Streamer (latest version) |
Quote:
#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> |
LSPDGATE!!!
Код:
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;