Assistance Needed | error 035: argument type mismatch (argument 2)
#1

I'm using the NGRP gamemode that doesn't support SQL. I've never tried it out but this isn't my first time dealing with RP scripts and stuff. After my attempt to compile the gamemode with it's necessary includes, etc. it gave me a bunch of warnings and one error.

Here are the compiler errors:
Code:
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74829) : warning 213: tag mismatch
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74829) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74829) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74859) : warning 213: tag mismatch
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74859) : warning 213: tag mismatch
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74859) : warning 213: tag mismatch
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74859) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74859) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74883) : warning 213: tag mismatch
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74883) : warning 213: tag mismatch
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74883) : warning 213: tag mismatch
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74883) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74883) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(84855) : warning 213: tag mismatch
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(84855) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
I've been researching for fixes for this error but, unfortunately, I haven't found any reliable ones.

Here are the lines within the gamemode that provided the warnings and error:
Warning lines:
Code:
74829: GetPlayer3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone));
Code:
74859: GetPlayer3DZone(carPosF[0], carPosF[1], carPosF[2], zone, sizeof(zone));
Code:
74883: GetPlayer3DZone(carPosF[0], carPosF[1], carPosF[2], zone, sizeof(zone));
Code:
84855: GetPlayer3DZone(X, Y, Z, zone, sizeof(zone));
Error line:
Code:
84855: GetPlayer3DZone(X, Y, Z, zone, sizeof(zone)); (Same as above)
EDIT: If u guys need more logs, tell me and Imma get em', thanks in advance.
Reply
#2

Code:
//native GetPlayer3DZone(playerid, zone[], len);
You are passing more than 3 parameters while the function only takes three.
Reply
#3

But.. before these warnings and error were found by the compiler, I had 12 other different errors. I managed to fix them by replacing all the 'Get3DZone' with 'GetPlayer3DZone', as instructed by someone's comment on another post from a guy who faced the same problem. Idk if that could have caused this single error and warnings to arise.

Do you want a copy of the gamemode pwn file via a pastebin file or anything?
Reply
#4

I just undid my replacements from 'GetPlayer3DZone' all the way back to 'Get3dZone'. Here are the compiler logs:
Code:
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(3346) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(34854) : error 017: undefined symbol "Get3DZone"
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(34854) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(40920) : error 017: undefined symbol "Get3DZone"
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(40974) : error 017: undefined symbol "Get3DZone"
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(40974) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(41008) : error 017: undefined symbol "Get3DZone"
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(41008) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(46552) : error 017: undefined symbol "Get3DZone"
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(46552) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(46601) : error 017: undefined symbol "Get3DZone"
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(46601) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(66502) : error 017: undefined symbol "Get3DZone"
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(66502) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74794) : error 017: undefined symbol "Get3DZone"
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74794) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74829) : error 017: undefined symbol "Get3DZone"
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74829) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74859) : error 017: undefined symbol "Get3DZone"
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74859) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74883) : error 017: undefined symbol "Get3DZone"
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(74883) : warning 202: number of arguments does not match definition
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(84855) : error 017: undefined symbol "Get3DZone"
E:\flash stuff\NGRP Script (1)\NGRP Script\gamemodes\ngrp.pwn(84855) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


12 Errors.
What could have caused this problem?
Reply
#5

Thanks. I managed to fix the errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)