Little help with gang zones... - 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: Little help with gang zones... (
/showthread.php?tid=269279)
Little help with gang zones... -
Setkus - 15.07.2011
Hey guys!
I want to make gang zones, but when i perss f5 heres what i've got:
D:\GTA SA\USA vs MEC\gamemodes\rivershell.pwn(145) : warning 202: number of arguments does not match definition
D:\GTA SA\USA vs MEC\gamemodes\rivershell.pwn(145) : warning 202: number of arguments does not match definition
D:\GTA SA\USA vs MEC\gamemodes\rivershell.pwn(145) : warning 202: number of arguments does not match definition
D:\GTA SA\USA vs MEC\gamemodes\rivershell.pwn(145) : warning 202: number of arguments does not match definition
D:\GTA SA\USA vs MEC\gamemodes\rivershell.pwn(146) : warning 202: number of arguments does not match definition
D:\GTA SA\USA vs MEC\gamemodes\rivershell.pwn(146) : warning 202: number of arguments does not match definition
D:\GTA SA\USA vs MEC\gamemodes\rivershell.pwn(146) : warning 202: number of arguments does not match definition
D:\GTA SA\USA vs MEC\gamemodes\rivershell.pwn(146) : warning 202: number of arguments does not match definition
D:\GTA SA\USA vs MEC\gamemodes\rivershell.pwn(162) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
9 Warnings.
Nad here is the code:
USA = GangZoneCreate(-81,74512, 1623,225, 455,4371, 2148,729);
MEC = GangZoneCreate(-140,1345, 2312,219, 513,8265, 2709,267);
What i do wrong ?
Re: Little help with gang zones... -
[MG]Dimi - 15.07.2011
You have inserted "," everywhere. If you want to make two and a half you would add 2.5 not 2,5 so your code must be
PHP код:
USA = GangZoneCreate(-81.74512, 1623.225, 455.4371, 2148.729);
MEC = GangZoneCreate(-140.1345, 2312.219, 513.8265, 2709.267);
Re: Little help with gang zones... -
Jeffry - 15.07.2011
Use the
. (Dot) for Float Values.
pawn Код:
USA = GangZoneCreate(-81.74512, 1623.225, 455.4371, 2148.729);
MEC = GangZoneCreate(-140.1345, 2312.219, 513.8265, 2709.267);
Jeffry
EDIT: [MG]Dimi was a bit faster. ^^
Re: Little help with gang zones... -
Setkus - 15.07.2011
Oh, thanks guys!
Re: Little help with gang zones... -
Seven_of_Nine - 15.07.2011
Your coords'.
Do like this:
pawn Код:
USA = GangZoneCreate(-81.74512, 1623.225, 455.4371, 2148.729);
MEC = GangZoneCreate(-140.1345, 2312.219, 513.8265, 2709.267);
EDIT: Trololo I type slow..
Re: Little help with gang zones... -
Setkus - 15.07.2011
Nad guys one more question. Can i remove those two guns from game mode name rivershell ?
Re: Little help with gang zones... -
AgentZero - 15.07.2011
Quote:
Originally Posted by Setkus
Nad guys one more question. Can i remove those two guns from game mode name rivershell ?
|
of course you can which guns? and when do you get the guns?
Re: Little help with gang zones... -
Setkus - 15.07.2011
MP5 and M4. Guns I get after respawn!
Re: Little help with gang zones... -
AgentZero - 15.07.2011
ok search OnPlayerSpawn and then look for GivePlayerWeapon and find the M4 32 and 29 for MP5
Re: Little help with gang zones... -
Setkus - 15.07.2011
in that pwn file there is no GivePlayerWeapon!