SA-MP Forums Archive
Maybe a simple question - 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: Maybe a simple question (/showthread.php?tid=68648)



Maybe a simple question - rc_enzo - 12.03.2009

Hi,

I'm a new scripter, and I'm tracing any tutorials there is findable around the web. I know a little how to now, but I need with PAWNO a little help. I want to spawn four Turismo's in front of the spawning area, The High Roller. This is the code for that:
Код:
public OnGameModeInit()
{
	SetGameModeText("ENZOALPHA");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	AddStaticVehicle(451, 2021,171, 1353,344, 15, 270, 36, 1);
	AddStaticVehicle(451, 2021,171, 1373,344, 15, 270, 36, 1);
	AddStaticVehicle(451, 2021,171, 1393,344, 15, 270, 36, 1);
	AddStaticVehicle(451, 2021,171, 1423,344, 15, 270, 36, 1);
	return 1;
}
When I try to compile it, I get continuously this message:
Код:
enzo.pwn(38) : warning 202: number of arguments does not match definition
<path, left outside>/enzo.pwn(38) : warning 202: number of arguments does not match definition
<path>/enzo.pwn(39) : warning 202: number of arguments does not match definition
<path>/enzo.pwn(39) : warning 202: number of arguments does not match definition
<path>/enzo.pwn(40) : warning 202: number of arguments does not match definition
<path>/enzo.pwn(40) : warning 202: number of arguments does not match definition
<path>/enzo.pwn(41) : warning 202: number of arguments does not match definition
<path>/enzo.pwn(41) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Warnings.
What am I doing wrong?


Re: Maybe a simple question - .Bino. - 12.03.2009

Код:
public OnGameModeInit()
{
	SetGameModeText("ENZOALPHA");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	AddStaticVehicle(451, 2021.171, 1353.344, 15.270, 36, 1);
	AddStaticVehicle(451, 2021.171, 1373.344, 15.270, 36, 1);
	AddStaticVehicle(451, 2021.171, 1393.344, 15.270, 36, 1);
	AddStaticVehicle(451, 2021.171, 1423.344, 15.270, 36, 1);
	return 1;
}



Re: Maybe a simple question - rc_enzo - 12.03.2009

aaah I see now,

thanx!