No. of arguments Warnings!
#1

Hey guys, I compile my gamemode and it keeps giving me these warnings!

Code:
C:\Users\Gabriel\xxx\gamemodes\rp.pwn(45894) : warning 202: number of arguments does not match definition
C:\Users\Desktop\xxx\gamemodes\rp.pwn(45895) : warning 202: number of arguments does not match definition
C:\Users\Desktop\xxx\gamemodes\rp.pwn(45896) : warning 202: number of arguments does not match definition
C:\Users\Desktop\xxx\gamemodes\rp.pwn(45897) : warning 202: number of arguments does not match definition
C:\Users\Desktop\xxx\gamemodes\rp.pwn(45898) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
Here are lines 45894 - 45898:

Code:
	        qs_tmp_objects[playerid][0] = CreateObject(18690, 2362.9751,-1643.0211,15.4764, 0.0,0.0,0.0, 0.0, true);
	        qs_tmp_objects[playerid][1] = CreateObject(18690, 2367.3020,-1639.6914,15.7275, 0.0,0.0,0.0, 0.0, true);
	        qs_tmp_objects[playerid][2] = CreateObject(18690, 2359.1038,-1638.9196,15.8390, 0.0,0.0,0.0, 0.0, true);
	        qs_tmp_objects[playerid][3] = CreateObject(18690, 2359.5479,-1643.1423,11.5157, 0.0,0.0,0.0, 0.0, true);
	        qs_tmp_objects[playerid][4] = CreateObject(18690, 2366.0801,-1643.1429,11.5393, 0.0,0.0,0.0, 0.0, true);
Reply
#2

pawn Code:
(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0)
You have an extra argument "true" when the function itself does not have another parameter.
Reply
#3

Remove True
PHP Code:
 qs_tmp_objects[playerid][0] = CreateObject(186902362.9751,-1643.0211,15.47640.0,0.0,0.00.0);
            
qs_tmp_objects[playerid][1] = CreateObject(186902367.3020,-1639.6914,15.72750.0,0.0,0.00.0);
            
qs_tmp_objects[playerid][2] = CreateObject(186902359.1038,-1638.9196,15.83900.0,0.0,0.00.0);
            
qs_tmp_objects[playerid][3] = CreateObject(186902359.5479,-1643.1423,11.51570.0,0.0,0.00.0);
            
qs_tmp_objects[playerid][4] = CreateObject(186902366.0801,-1643.1429,11.53930.0,0.0,0.00.0); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)