I have a big problem !
#1

when compiling gamemod gives me these errors

Код:
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5649) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5663) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6105) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6133) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6161) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6189) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6217) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6221) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6231) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6236) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6289) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6293) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6298) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6313) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6322) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6331) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6340) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6349) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6513) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6527) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6542) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6556) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6572) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6586) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6601) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(6617) : error 079: inconsistent return types (array & non-array)

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


26 Errors.
lines of 6105 , 6133 , 6161 , 6189 , 6217 is:
pawn Код:
return 1;
line 6231
pawn Код:
if(AbleToPlay[playerid] == 1) return SendClientMessage(playerid,0xD92626AA,"You are already playing!");
line 6236
pawn Код:
if(AbleToPlay[playerid] == 0) return SendClientMessage(playerid,0xD92626AA,"You didn't start the game!");
line 6289
pawn Код:
return 1;
line 6298
pawn Код:
return 1;
line 6313
pawn Код:
else if(BowlingRoadStatus[0] == ROAD_BUSY) return SendClientMessage(playerid,COLOR_CMDERROR,"Road busy.");
line 6331
pawn Код:
else if(BowlingRoadStatus[2] == ROAD_BUSY) return SendClientMessage(playerid,COLOR_CMDERROR,"Road busy.");
line 6340
pawn Код:
else if(BowlingRoadStatus[3] == ROAD_BUSY) return SendClientMessage(playerid,COLOR_CMDERROR,"Road busy.");
line 6349
pawn Код:
else if(BowlingRoadStatus[4] == ROAD_BUSY) return SendClientMessage(playerid,COLOR_CMDERROR,"Road busy.");
line 6513 , 6527 , 6542 , 6556 , 6572 , 6586 , 6601 , 6617 :
pawn Код:
return 1;
Reply
#2

anyone help me ?
Reply
#3

you must have missed a bracket somewhere .. *}* or *{*
is should be around the line 5649 or 6105
Reply
#4

new errors:

Код:
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15569) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15584) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15599) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15614) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15732) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15746) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15761) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15775) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15790) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15806) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15823) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15837) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15852) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15866) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15881) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15897) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15912) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15928) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15943) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15955) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15967) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15979) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(15991) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(16002) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(33330) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63697) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63711) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63725) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63739) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63874) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63888) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63916) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63930) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63944) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63958) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63972) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63986) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(63999) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(64013) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(64027) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(64041) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(64097) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(64111) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(64125) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(64139) : warning 202: number of arguments does not match definition
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\ProDS.pwn(65421) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          15532 bytes
Code size:          3766292 bytes
Data size:         12985472 bytes
Stack/heap size:      16384 bytes; estimated max. usage=7345 cells (29380 bytes)
Total requirements:16783680 bytes

46 Warnings.
Reply
#5

Post all the lines and their previous lines.
Reply
#6

the number of arguments are not what it should be.
eg

SendClientMessage(playerid, -1, "text", "text");
or
SendClientMessage(playerid, -1, "%d text", playerid); // this should be done with format

instead of

SendClientMessage(playerid, -1, "text");
Reply
#7

Quote:

SendClientMessage(playerid, -1, "%d text", playerid); // this should be done with format

Hang on, You're saying him to use this format?

SendClientMessage doesn't have float param..
Reply
#8

Can you give the whole code?
Reply
#9

Solved. Thanks guys
ADD +1 REP everyone
Reply
#10

Quote:
Originally Posted by SupremeCommander
Посмотреть сообщение
Hang on, You're saying him to use this format?

SendClientMessage doesn't have float param..
please read what i wrote again.
pawn Код:
SendClientMessage(playerid, -1, "text", "text");
or
SendClientMessage(playerid, -1, "%d text", playerid); // this should be done with format
these both are with the wrong arguments and i gave it as an example as many people try to format with sendclientMessage, and not format function.



P.S. No intentions of bumping
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)