Random Position
#1

Код:
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.
Reply
#2

SetPlayerPos does take only 4 parameters which are playerid, X, Y and Z.
Reply
#3

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.
Reply
#4

O ok, Thanks So much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)