Some problems with 'Includes'
#1

Problem solved with Inlcudes, thanks to xRyder, but now I got this error, does somebody know what to do?

Код:
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(796) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(797) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(798) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(799) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(800) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(801) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(802) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(803) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(804) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(805) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(806) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(807) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(808) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(809) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(810) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1072) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1073) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1074) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1075) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1076) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1077) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1078) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1079) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1080) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1081) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1082) : error 035: argument type mismatch (argument 1)

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Sorry for my bad english..
Reply
#2

Are you 100% sure that your using pawno.exe with all of those includes? Check it.
Reply
#3

Quote:
Originally Posted by xRyder
Посмотреть сообщение
Are you 100% sure that your using pawno.exe with all of those includes? Check it.
Oh ya.. I didn't think about that, now it doesn't show me the problem with a_mysql.inc, but now it got this error...:

Код:
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(796) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(797) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(798) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(799) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(800) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(801) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(802) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(803) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(804) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(805) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(806) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(807) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(808) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(809) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(810) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1072) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1073) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1074) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1075) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1076) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1077) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1078) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1079) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1080) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1081) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Gytis\Desktop\DesertLife\gamemodes\DRL.pwn(1082) : error 035: argument type mismatch (argument 1)

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#4

Show some code?
Reply
#5

Like the lines 796 code is:

Код:
 mysql_fetch_field("Nupirktas",sql); if(strval(sql) == 1){hInfo[KiekNamu][Nupirktas] = true;}else{hInfo[KiekNamu][Nupirktas] = false;}
797 lines code is:

Код:
    mysql_fetch_field("Uzraktas",sql); if(strval(sql) == 1){hInfo[KiekNamu][Uzraktas] = true;}else{hInfo[KiekNamu][Uzraktas] = false;}
and etc.
Reply
#6

So does somebody know what to do?
Reply
#7

Quote:
Originally Posted by Stuntas
Посмотреть сообщение
So does somebody know what to do?
It looks to me like, your arguments are incorrect, like you made a huge block of code and on every line you are entering the arguments in the wrong order or with the wrong type passed


Edited: Just go to the first line and check the arguments for the whole line while checking your defines, declares esc, that are relevant. You should get a easy fix, and you'll have to do the same thing for everyline.

Sorry off topic: I'm really interested in making my own include so i can click it in the sidebar, but native fails everytime, did you native your methods or no? if so where did you find out how?
Reply
#8

pawn Код:
native mysql_fetch_field(number,dest[],connectionHandle = 1);
With number being the index, not the column name.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)