Random Position - 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)
+--- Thread: Random Position (
/showthread.php?tid=508907)
Random Position -
OneITWiz - 24.04.2014
Код:
C:\Users\Andrew\Desktop\GTA Server\gamemodes\BCRP.pwn(10110) : warning 202: number of arguments does not match definition
C:\Users\Andrew\Desktop\GTA Server\gamemodes\BCRP.pwn(10110) : warning 202: number of arguments does not match definition
C:\Users\Andrew\Desktop\GTA Server\gamemodes\BCRP.pwn(10110) : warning 202: number of arguments does not match definition
C:\Users\Andrew\Desktop\GTA Server\gamemodes\BCRP.pwn(10110) : warning 202: number of arguments does not match definition
C:\Users\Andrew\Desktop\GTA Server\gamemodes\BCRP.pwn(10110) : warning 202: number of arguments does not match definition
C:\Users\Andrew\Desktop\GTA Server\gamemodes\BCRP.pwn(10110) : warning 202: number of arguments does not match definition
C:\Users\Andrew\Desktop\GTA Server\gamemodes\BCRP.pwn(10110) : warning 202: number of arguments does not match definition
C:\Users\Andrew\Desktop\GTA Server\gamemodes\BCRP.pwn(10110) : warning 202: number of arguments does not match definition
C:\Users\Andrew\Desktop\GTA Server\gamemodes\BCRP.pwn(10110) : warning 202: number of arguments does not match definition
C:\Users\Andrew\Desktop\GTA Server\gamemodes\BCRP.pwn(10110) : warning 202: number of arguments does not match definition
C:\Users\Andrew\Desktop\GTA Server\gamemodes\BCRP.pwn(10110) : warning 202: number of arguments does not match definition
C:\Users\Andrew\Desktop\GTA Server\gamemodes\BCRP.pwn(10110) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
12 Warnings.
Код:
SetPlayerPos(playerid, RandomAPrison[rand][0], RandomAPrison[rand][1], RandomAPrison[rand][2], RandomAPrison[rand][3], RandomAPrison[rand][4],RandomAPrison[rand][5], RandomAPrison[rand][6], RandomAPrison[rand][7],RandomAPrison[rand][8], RandomAPrison[rand][9], RandomAPrison[rand][10], RandomAPrison[rand][11], RandomAPrison[rand][12], RandomAPrison[rand][13], RandomAPrison[rand][14]);
All the info is there, I've tried everything nothing has worked, Will be grateful if this can be fixed, It isnt a problem to the server, Just i hate Warnings.
Re: Random Position -
[KHK]Khalid - 24.04.2014
SetPlayerPos does take only 4 parameters which are playerid, X, Y and Z.
Re: Random Position -
Konstantinos - 24.04.2014
SetPlayerPos has 4 arguments/parameters.
playerid, x, y, z
You use 16 arguments and hence it gives the warning. Add only the x, y and z of RandomAPrison.
Re: Random Position -
OneITWiz - 24.04.2014
O ok, Thanks So much