error 017: undefined symbol "playerid"
#1

Hey,

I have strange Error:

Код:
D:\Zaidimai\Serveris\LRG 7\gamemodes\band7.pwn(275) : error 017: undefined symbol "playerid"
D:\Zaidimai\Serveris\LRG 7\gamemodes\band7.pwn(277) : error 017: undefined symbol "playerid"
D:\Zaidimai\Serveris\LRG 7\gamemodes\band7.pwn(296) : error 017: undefined symbol "playerid"
D:\Zaidimai\Serveris\LRG 7\gamemodes\band7.pwn(298) : error 017: undefined symbol "playerid"
D:\Zaidimai\Serveris\LRG 7\gamemodes\band7.pwn(317) : error 017: undefined symbol "playerid"
D:\Zaidimai\Serveris\LRG 7\gamemodes\band7.pwn(319) : error 017: undefined symbol "playerid"
script:

Код:
public AutomVartai()
    {
        if(playerDB[playerid][specialybe] == 1)
        {
	    if(PlayerToPoint(5, playerid,29.48893737793,2062.6879882813,19.221252441406)) //Vietoj X,Y,Z iraљome savo vartu kordinates.
		{
		if(!AutoVartai)
		{
		 MoveObject(Vartai3,29.48893737793,2062.6879882813,15.221252441406,3); //Vietoj X,Y,Z iraљome savo atidarytu vartu kordinates.
		AutoVartai = true; // Nustatom, kad vartai yra atidaryti.
		 return 1;
		}
		}
		else
		{
		if(AutoVartai)
		 {
		 MoveObject(Vartai3,29.48893737793,2062.6879882813,19.221252441406,3); //Vietoj X,Y,Z iraљome savo uћdarytu vartu kordinates.
		 AutoVartai = false; // Nustatome, kad vartai yra uћdaryti.
		 }
		 return 1;
		 }
		 }
         if(playerDB[playerid][specialybe] == 1)
        {
	    if(PlayerToPoint(5,playerid,29.127811431885, 2025.8299560547, 20.310543060303)) //Vietoj X,Y,Z iraљome savo vartu kordinates.
		{
		if(!AutoVartai)
		{
		 MoveObject(Vartai,29.127811431885, 2025.8299560547, 16.310543060303,3); //Vietoj X,Y,Z iraљome savo atidarytu vartu kordinates.
		AutoVartai = true; // Nustatom, kad vartai yra atidaryti.
		 return 1;
		}
		}
		else
		{
		if(AutoVartai)
		 {
		 MoveObject(Vartai,29.127811431885, 2025.8299560547, 20.310543060303,3); //Vietoj X,Y,Z iraљome savo uћdarytu vartu kordinates.
		 AutoVartai = false; // Nustatome, kad vartai yra uћdaryti.
		 }
		 return 1;
		 }
		 }
         if(playerDB[playerid][specialybe] == 1)
        {
	    if(PlayerToPoint(5,playerid,29.250812530518, 2040.7322998047, 20.230472564697)) //Vietoj X,Y,Z iraљome savo vartu kordinates.
		{
Please Help
Reply
#2

Replace:

pawn Код:
forward AutomVartai();
with
pawn Код:
forward AutomVartai(playerid);
Then replace
pawn Код:
public AutomVartai()
with
pawn Код:
public AutomVartai(playerid)
You forwarded AutomVartai without telling the script it's for playerids.
Reply
#3

That's clearly an autogate script, inwhich case you DONT do what Biesmen said, and add this

pawn Код:
public AutomVartai()
{
    for(new playerid;playerid<MAX_PLAYERS;playerid++)
    {
        //Your code
    }
}
Reply
#4

Very Thanks!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)