[HELP] error 010: invalid function or declaration
#1

Errors:
Quote:

G:\FreshGE(Samod) V2.0\gamemodes\rtprp2.pwn(31331) : error 010: invalid function or declaration
G:\FreshGE(Samod) V2.0\gamemodes\rtprp2.pwn(31333) : error 010: invalid function or declaration
G:\FreshGE(Samod) V2.0\gamemodes\rtprp2.pwn(3133 : error 054: unmatched closing brace ("}")

code
Код:
if (IsPlayerInRangeOfPoint( playerid, 15, 1589.053344, -1638.123168, 14.122960))
		    {
            	if( Player[playerid][Group] == 1)
                {
      		    MoveDynamicObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.8);
      		    SetTimer("GateClose", 12000, 0);
      		   
		        }
		    }
Reply
#2

For fuck sake, can you tell us WHERE those lines are, please?
Reply
#3

Did you enum of whatever you did in this if(Player
and try to delete all spaces
BTW use SetTimerEx
Reply
#4

pawn Код:
if (IsPlayerInRangeOfPoint( playerid, 15, 1589.053344, -1638.123168, 14.122960))
{
    if( Player[playerid][Group] == 1)
    {
        MoveDynamicObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.8);
        SetTimer("GateClose", 12000, 0);
    }
}
Reply
#5

Quote:
Originally Posted by -Luis
Посмотреть сообщение
pawn Код:
if (IsPlayerInRangeOfPoint( playerid, 15, 1589.053344, -1638.123168, 14.122960))
{
    if( Player[playerid][Group] == 1)
    {
        MoveDynamicObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.8);
        SetTimer("GateClose", 12000, 0);
    }
}
thanx
Quote:

G:\FreshGE(Samod) V2.0\gamemodes\rtprp2.pwn(3133 : error 054: unmatched closing brace ("}")

this error got fixed
Quote:

G:\FreshGE(Samod) V2.0\gamemodes\rtprp2.pwn(31331) : error 010: invalid function or declaration

but i still have this error left : |


Quote:

Did you enum of whatever you did in this if(Player

Thanx for the tip but i'm just making my first steps into samp scripting my knowlage is more then poor at the moment
so it would be real helpfull for me if you tell me how do i enum ? (p.s. to be honest i don't even know what enum is )
Reply
#6

UPP is it so hard to help me people ?
if you need some more info just tell me
Reply
#7

pawn Код:
enum Info
{
   Group, // whatever info you wanna use, you can put for example Rank or anything
   //Add more here if you want
}
new Player[MAX_PLAYERS][Info];
Thats basically it
Add it where you add new functions (above main() function)
and BTW, now don't use == twice use it just on‌ce =
Reply
#8

pawn Код:
if (IsPlayerInRangeOfPoint( playerid, 15, 1589.053344, -1638.123168, 14.122960))
            {
                if( Player[playerid][Group] == 1)
                {
                MoveDynamicObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.8);
                SetTimer("GateClose", 12000, 0);
               
                }
                        return 1;
            }
Reply
#9

do u have created callbacks and forward that :/
Reply
#10

@ mean, u dont have to use SetTimerEx, because he doesnt have to send any values or things with the timer, he only needs to activate it.
Reply
#11

thanx all but nothing helped me ..
the thing i'm trying to do is add automatic gates from bloodz rp into retrox

the code in first post is added in the end of the script... maybe i need to add this into separated place
p.s.
i have searched automatic gate tutorial on this forum and also on wiki .. there are to many of them...
i would like to know wich one is best ... because if this code won't work i would try to try another method
Reply
#12

which is the best way to create automatic gates ? ( in my situation for rxrp)
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)