help me with a error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help me with a error (
/showthread.php?tid=134238)
help me with a error -
Brian_Furios - 15.03.2010
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);
}
Re: help me with a error -
Brian_Furios - 15.03.2010
anyone help me pls
Re: help me with a error -
Zimon95 - 15.03.2010
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);
}
Re: help me with a error -
Brian_Furios - 16.03.2010
bump
Re: help me with a error -
biltong - 16.03.2010
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
Re: help me with a error -
Brian_Furios - 16.03.2010
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