Compile error help me pls
#1

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
Reply
#2

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

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
Reply
#4

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
Reply
#5

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

what u mean? i did? didnt i?
Reply
#7

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.
Reply
#8

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

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

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


Forum Jump:


Users browsing this thread: 9 Guest(s)