help me with a error
#1

pawn Код:
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3696) : error 035: argument type mismatch (argument 4)
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3705) : warning 218: old style prototypes used with optional semicolumns
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3706) : error 055: start of function body without function header
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3714) : warning 218: old style prototypes used with optional semicolumns
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3715) : error 055: start of function body without function header
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

pawn Код:
forward spawndopotutorial(playerid);
forward alzarsi(playerid);
pawn Код:
{
            SetPlayerToTeamColor(playerid);
            SetPlayerCameraPos(playerid, 1576.5729,-1898.9436,160.5427);
            SetPlayerCameraLookAt(playerid, 1507.6122,-1726.1003,126.2905);
            //SetPlayerPos(playerid,2.7177,26.3882,1199.5938);
            SetPlayerFacingAngle(playerid, 0);
            SetPlayerInterior(playerid,1);
            PlayerInfo[playerid][pInt] = 1;
            SetTimerEx("spawndopotutorial",7000,0,playerid);
            SendClientMessage(playerid, COLOR_YELLOW2, "Attendere per lo spawn....");
            return 1;
        }
pawn Код:
public spawndopotutorial(playerid);
{
  SetPlayerPos(playerid,2.7177,26.3882,1199.5938);
    SetPlayerInterior(playerid,1);
    PlayerInfo[playerid][pInt] = 1;
    ApplyAnimation(playerid,"PED","SEAT_down",4.1,1,1,1,1,0);
    SetTimerEx("alzarsi",3000,0,playerid);
}
pawn Код:
public alzarsi(playerid);
{
  ClearAnimations(playerid);
}
Reply
#2

anyone help me pls
Reply
#3

Tell us what are the lines with errors.

Dicci quali sono le righe degli errori.

BTW use this:
Код:
 public spawndopotutorial(playerid)
{
  SetPlayerPos(playerid,2.7177,26.3882,1199.5938);
	SetPlayerInterior(playerid,1);
	PlayerInfo[playerid][pInt] = 1;
	ApplyAnimation(playerid,"PED","SEAT_down",4.1,1,1,1,1,0);
	SetTimerEx("alzarsi",3000,0,playerid);
}
Код:
public alzarsi(playerid)
{
 ClearAnimations(playerid);
}
Reply
#4

bump
Reply
#5

Quote:
Originally Posted by Brian_Furios
pawn Код:
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3696) : error 035: argument type mismatch (argument 4)
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3705) : warning 218: old style prototypes used with optional semicolumns
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3706) : error 055: start of function body without function header
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3714) : warning 218: old style prototypes used with optional semicolumns
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3715) : error 055: start of function body without function header
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

pawn Код:
forward spawndopotutorial(playerid);
forward alzarsi(playerid);
pawn Код:
{
            SetPlayerToTeamColor(playerid);
            SetPlayerCameraPos(playerid, 1576.5729,-1898.9436,160.5427);
            SetPlayerCameraLookAt(playerid, 1507.6122,-1726.1003,126.2905);
            //SetPlayerPos(playerid,2.7177,26.3882,1199.5938);
            SetPlayerFacingAngle(playerid, 0);
            SetPlayerInterior(playerid,1);
            PlayerInfo[playerid][pInt] = 1;
            SetTimerEx("spawndopotutorial",7000,0,playerid);
            SendClientMessage(playerid, COLOR_YELLOW2, "Attendere per lo spawn....");
            return 1;
        }
pawn Код:
public spawndopotutorial(playerid);
{
  SetPlayerPos(playerid,2.7177,26.3882,1199.5938);
    SetPlayerInterior(playerid,1);
    PlayerInfo[playerid][pInt] = 1;
    ApplyAnimation(playerid,"PED","SEAT_down",4.1,1,1,1,1,0);
    SetTimerEx("alzarsi",3000,0,playerid);
}
pawn Код:
public alzarsi(playerid);
{
  ClearAnimations(playerid);
}
You don't put colons behind callbacks, so change
pawn Код:
public spawndopotutorial(playerid);
to
pawn Код:
public spawndopotutorial(playerid)
and
pawn Код:
public spawndopotutorial(playerid);
to
pawn Код:
public spawndopotutorial(playerid)
That will get rid of 2 errors.

The other error is your SetTimerEx, which should look like
pawn Код:
SetTimerEx("spawndopotutorial",7000,0/*(or false)*/,"i",playerid);
not
pawn Код:
SetTimerEx("spawndopotutorial",7000,0,playerid);
That should fix
Reply
#6

Quote:
Originally Posted by biltong
Quote:
Originally Posted by Brian_Furios
pawn Код:
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3696) : error 035: argument type mismatch (argument 4)
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3705) : warning 218: old style prototypes used with optional semicolumns
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3706) : error 055: start of function body without function header
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3714) : warning 218: old style prototypes used with optional semicolumns
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(3715) : error 055: start of function body without function header
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

pawn Код:
forward spawndopotutorial(playerid);
forward alzarsi(playerid);
pawn Код:
{
            SetPlayerToTeamColor(playerid);
            SetPlayerCameraPos(playerid, 1576.5729,-1898.9436,160.5427);
            SetPlayerCameraLookAt(playerid, 1507.6122,-1726.1003,126.2905);
            //SetPlayerPos(playerid,2.7177,26.3882,1199.5938);
            SetPlayerFacingAngle(playerid, 0);
            SetPlayerInterior(playerid,1);
            PlayerInfo[playerid][pInt] = 1;
            SetTimerEx("spawndopotutorial",7000,0,playerid);
            SendClientMessage(playerid, COLOR_YELLOW2, "Attendere per lo spawn....");
            return 1;
        }
pawn Код:
public spawndopotutorial(playerid);
{
  SetPlayerPos(playerid,2.7177,26.3882,1199.5938);
    SetPlayerInterior(playerid,1);
    PlayerInfo[playerid][pInt] = 1;
    ApplyAnimation(playerid,"PED","SEAT_down",4.1,1,1,1,1,0);
    SetTimerEx("alzarsi",3000,0,playerid);
}
pawn Код:
public alzarsi(playerid);
{
  ClearAnimations(playerid);
}
You don't put colons behind callbacks, so change
pawn Код:
public spawndopotutorial(playerid);
to
pawn Код:
public spawndopotutorial(playerid)
and
pawn Код:
public spawndopotutorial(playerid);
to
pawn Код:
public spawndopotutorial(playerid)
That will get rid of 2 errors.

The other error is your SetTimerEx, which should look like
pawn Код:
SetTimerEx("spawndopotutorial",7000,0/*(or false)*/,"i",playerid);
not
pawn Код:
SetTimerEx("spawndopotutorial",7000,0,playerid);
That should fix
thx a lot it work
Reply


Forum Jump:


Users browsing this thread: