Gates dosnt spawn
#1

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


Код:
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 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
Код:
		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);
To
Код:
		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);
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
Quote:

Scanff (latest version)
Streamer (latest version)

and this is all plugins i have included
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;
Reply
#2

Gates and stuff like that are known as Objects, not related to the labels sir.
Reply
#3

Why You Are showing lable show us the coods
Reply
#4

ahh now i uploaded script
Reply
#5

bump please help
Reply
#6

are your includes AND plugins both up to date?mayb you have only updated the include
Reply
#7

i deleted old streamer.dll and added latest streamer.dll and also pawno/include i added latest streamer.inc and compiled the gamemode after that i had some errors that i solved and now all objects are gone also all Labels and stuff Streamer plugin loaded 2.6.1 by icognito

but i actually found somthing interesting maybe its the problem here it is

Sscanf plugin loaded.
<c> 2009 alex "******" Cole
0.3d-R2 500 players "dnee"

is that the latest plugin? and also i use the latest server (with all includes from latest server)

server V0.3e-R2


any ideas?
Reply
#8

Bump helP!!
Reply
#9

Bump HeeeeeeeLP!
Reply
#10

Did you add/remove any mappings?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)