SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/01/2019, 01:20 AM   #1
KevTheJoker
Big Clucker
 
KevTheJoker's Avatar
 
Join Date: Dec 2018
Location: South America
Posts: 80
Reputation: 7
Default Assistance Needed | error 035: argument type mismatch (argument 2)

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 (c) 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.
KevTheJoker is offline   Reply With Quote
Old 14/01/2019, 09:29 AM   #2
GRiMMREAPER
Huge Clucker
 
GRiMMREAPER's Avatar
 
Join Date: Jan 2018
Posts: 231
Reputation: 64
Default Re: Assistance Needed | error 035: argument type mismatch (argument 2)

Code:
//native GetPlayer3DZone(playerid, zone[], len);
You are passing more than 3 parameters while the function only takes three.
GRiMMREAPER is offline   Reply With Quote
Old 14/01/2019, 11:18 AM   #3
KevTheJoker
Big Clucker
 
KevTheJoker's Avatar
 
Join Date: Dec 2018
Location: South America
Posts: 80
Reputation: 7
Default Re: Assistance Needed | error 035: argument type mismatch (argument 2)

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?
KevTheJoker is offline   Reply With Quote
Old 14/01/2019, 11:41 AM   #4
KevTheJoker
Big Clucker
 
KevTheJoker's Avatar
 
Join Date: Dec 2018
Location: South America
Posts: 80
Reputation: 7
Default Re: Assistance Needed | error 035: argument type mismatch (argument 2)

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 (c) 1997-2006, ITB CompuPhase


12 Errors.
What could have caused this problem?
KevTheJoker is offline   Reply With Quote
Old 14/01/2019, 09:29 PM   #5
KevTheJoker
Big Clucker
 
KevTheJoker's Avatar
 
Join Date: Dec 2018
Location: South America
Posts: 80
Reputation: 7
Default Re: Assistance Needed | error 035: argument type mismatch (argument 2)

Thanks. I managed to fix the errors.
KevTheJoker is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
D:\server\gamemodes\ExtremeGame.pwn(22326) : error 035: argument type mismatch (argument 2) enzulikeS Scripting Help 2 25/04/2018 03:38 PM
C:\Users\Lirbo\Desktop\Roleplay\gamemodes\ERP.pwn( 19) : error 035: argument type mismatch (argument 1) Lirbo Scripting Help 2 12/12/2014 02:51 PM
error 35: Argument Type Mismatch (argument 2) Forbidden Name System Stoyanov Scripting Help 2 01/11/2014 08:50 PM
error 035: argument type mismatch (argument 2) [Using MySQL R7/R8 With Cache] viveka27 Scripting Help 1 21/05/2013 03:31 PM


All times are GMT. The time now is 11:38 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.