SA-MP Forums Archive
Compile error help me pls - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Compile error help me pls (/showthread.php?tid=205975)



Compile error help me pls - Abraham2nds - 02.01.2011

pawn Код:
C:\Documents and Settings\Abraham2\Desktop\Abe\gamemodes\LSCNR.pwn(4757) : error 021: symbol already defined: "string"
C:\Documents and Settings\Abraham2\Desktop\Abe\gamemodes\LSCNR.pwn(11262) : error 017: undefined symbol "housename"
C:\Documents and Settings\Abraham2\Desktop\Abe\gamemodes\LSCNR.pwn(11262) : warning 215: expression has no effect
C:\Documents and Settings\Abraham2\Desktop\Abe\gamemodes\LSCNR.pwn(15575) : warning 204: symbol is assigned a value that is never used: "taxes"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
i get the error when compiling


Re: Compile error help me pls - Hudgens - 02.01.2011

Post the code from the lines so people can understand what's wrong.


Re: Compile error help me pls - Abraham2nds - 02.01.2011

pawn Код:
public OnGameModeInit()
     new string[100], string2[100]; //line 4757

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
        housename = tmp; //line 11262

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
                    new taxes = GetHouseTaxAmt(style); //line 15575



Re: Compile error help me pls - Abraham2nds - 02.01.2011

BUMP!
can anyone help me?
its a gamemode i got and im editing it theres many features thats disabled with /* */ and i taking some out to enable them and thats where i get the dumb error any help is much appreciated


Re: Compile error help me pls - Notorious29 - 02.01.2011

ddue y dnt u post the pawno for other to figure out it


Re: Compile error help me pls - Abraham2nds - 02.01.2011

what u mean? i did? didnt i?


Re: Compile error help me pls - sobolanux - 02.01.2011

For the first error, you defined the variable "string" two times.

For the second, you use the variable "housename" but you haven`t defined it yet.

The other two are warnings. Add a "#pragma unused taxes" to get rid of the second one.


Re: Compile error help me pls - Abraham2nds - 02.01.2011

could u PLS do an example for me? thx i got rid of the string one...but the housename


Re: Compile error help me pls - titanak - 02.01.2011

search the string on OnGameModeInit , theres will be 2 times of it.


Re: Compile error help me pls - Abraham2nds - 02.01.2011

WHAT DOES HE MEAN BY?
Quote:
Originally Posted by sobolanux
Посмотреть сообщение
The warnings. Add a "#pragma unused taxes" to get rid of the second one.