How to fix these
#7

Quote:
Originally Posted by `Robo
Quote:
Originally Posted by Don Correlli
Read the pawn-lang.pdf to understand why you're getting those errors/warnings and how to fix them.
Why you post these? I know that but I need help, you just want post count so you post that. I NEED HELP NOT PDF!
Why so aggressive? He was actually trying to help you, and that guide tells you about those errors. In fact, the errors themselves are telling you what the problems are :O

Error 025: Your callback is different to what is defined, IE:
pawn Код:
public OnPlayerConnect(playerid)
will not give the error as that is forwarded in a_samp, but
pawn Код:
public OnPlayerConnect(playerid, ip)
will because it is different.

Warning 211: You used a "=" which sets a variable, not a "==" which checks something. So
pawn Код:
if(myVar = 1)
is wrong because that sets myVar to 1, it doesn't check if myVar is one.

Warning 215: You told the compiler to do something that either a) it doesn't know how to compile or b) literally has no effect on anything else.

Error 033: You probably forgot to tell the compiler where in the array "QuizGo" it must store the data. In other words, at the top of your script you did
pawn Код:
new QuizGo[MAX_PLAYERS];
or something to that effect, and then when you set it, you said:
pawn Код:
QuizGo = 982475;
or something. Because QuizGo is an array, you must tell it where to store what ever you give it.

Error 017: That's obvious, you used "text" without saying "new text" or whatever.

Error 001: That's THE most obvious error there is, it is telling you in english that you forgot to put a ; somewhere.

Error 029: Because so much else is wrong with that line, the compiler doesn't know what to do with it and instead assumes that line as zero.

Fatal error 107: That's self explanatory, the compiler gave up trying to make sense of the code because so much is wrong with it.

Hope I helped in some way.

Also, it's pretty pointless asking people to fix something they can't see >.<

Reply


Messages In This Thread
How to fix these - by `Robo - 07.04.2010, 18:35
Re: How to fix these - by Correlli - 07.04.2010, 18:36
Re: How to fix these - by `Robo - 07.04.2010, 18:37
Re: How to fix these - by Correlli - 07.04.2010, 18:39
Re: How to fix these - by `Robo - 07.04.2010, 18:39
Re: How to fix these - by aircombat - 07.04.2010, 18:47
Re: How to fix these - by biltong - 07.04.2010, 19:13

Forum Jump:


Users browsing this thread: 3 Guest(s)