Help me with warnings?
#1

Lol im annoying i know but now im learning so you guys need to help me

C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(203) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(216) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(571) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(589) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(730) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(823) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(824) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1135) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1141) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1147) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1155) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1160) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1182) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1204) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1312) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1316) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1321) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(135 : warning 213: tag mismatch
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(135 : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1372) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1377) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1507) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1552) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1576) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1582) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(158 : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1590) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1595) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1597) : warning 225: unreachable code
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1600) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1601) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1623) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1647) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1671) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1695) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1759) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1781) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1784) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1789) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1794) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(2172) : warning 209: function "OnPlayerCommandText" should return a value
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(227) : warning 204: symbol is assigned a value that is never used: "gatein"
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(226) : warning 204: symbol is assigned a value that is never used: "gateout"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


43 Warnings.


[GDZ]leader


Reply
#2

Quote:
Originally Posted by FireCat
Посмотреть сообщение
Lol im annoying i know but now im learning so you guys need to help me

C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(203) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(216) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(571) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(589) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(730) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(823) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(824) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1135) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1141) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1147) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1155) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1160) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1182) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1204) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1312) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1316) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1321) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(135 : warning 213: tag mismatch
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(135 : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1372) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1377) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1507) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1552) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1576) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1582) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(158 : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1590) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1595) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1597) : warning 225: unreachable code
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1600) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1601) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1623) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1647) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1671) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1695) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1759) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1781) : warning 217: loose indentation
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1784) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1789) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(1794) : warning 202: number of arguments does not match definition
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(2172) : warning 209: function "OnPlayerCommandText" should return a value
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(227) : warning 204: symbol is assigned a value that is never used: "gatein"
C:\Users\james\Desktop\stunt server - Copy\gamemodes\Driftv2.pwn(226) : warning 204: symbol is assigned a value that is never used: "gateout"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


43 Warnings.


[GDZ]leader


PM me your script and I can fix it fast and easy.
Reply
#3

It means that you either have some extra numbers or some missing!
Reply
#4

So many loose indentations...
make sure your code lines up correctly or

add
#pragma tabsize 0
ontop of your includes

For the first 2 errors, and others of the same type, you're using the wrong number of parameters, use the correct number of parameters for the functions on those lines.

For the error:
warning 209: function "OnPlayerCommandText" should return a value
add a return 0; to the end of your OnPlayerCommandText block.

For the last 2 errors, you assign the variables gatein and gateout values but you probably change it later on w/o using the first value (if you understand that)

Most likely, the problem is, you used a single equal sign in an if block rather than a double equal sign.
If you use a single equal sign, you're assigning a value to the variable. A double equal sign is used for conditionals.

But yeah, all of these errors are quite easily fixed and I'm sure Toni fixed them for you with ease, This is just here to help you understand the errors and show how to fix them, if you need them fixed later on.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)