Undiefined symbol error/argument type mismatch -
Dare Devil..... - 08.09.2012
Hello any one can help me fixing these errors?
Код:
C:\Users\Osman Ali\Desktop\Drift.pwn(2800) : error 017: undefined symbol "string128"
C:\Users\Osman Ali\Desktop\Drift.pwn(2800) : error 017: undefined symbol "string128"
C:\Users\Osman Ali\Desktop\Drift.pwn(2800) : warning 215: expression has no effect
C:\Users\Osman Ali\Desktop\Drift.pwn(2800) : error 001: expected token: ";", but found "]"
C:\Users\Osman Ali\Desktop\Drift.pwn(2800) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
i tried to put
but it gives me argument type mismatch then.
My line 2800/2801 is this.
pawn Код:
format(string128,sizeof(string128),"~w~ID: %i",pskin[playerid]);
GameTextForPlayer(playerid,string128,2000,3);
Re: Undiefined symbol error/argument type mismatch -
Shaneisace - 08.09.2012
you should do it like this
you must add the number in the [ ]
Re: Undiefined symbol error/argument type mismatch -
Camacorn - 08.09.2012
Replace new string128 with new string[128]; and replace string128 on those two lines with just string.
By the way, just my two cents, I suggest not using a string size of 128 for something so small.
Re: Undiefined symbol error/argument type mismatch -
Dare Devil..... - 08.09.2012
I just start getting this after that.
pawn Код:
C:\Users\Osman Ali\Desktop\Drift.pwn(1894) : warning 217: loose indentation
C:\Users\Osman Ali\Desktop\Drift.pwn(1972) : warning 202: number of arguments does not match definition
C:\Users\Osman Ali\Desktop\Drift.pwn(1986) : warning 219: local variable "skin" shadows a variable at a preceding level
C:\Users\Osman Ali\Desktop\Drift.pwn(2801) : error 017: undefined symbol "pskin"
C:\Users\Osman Ali\Desktop\Drift.pwn(2801) : warning 215: expression has no effect
C:\Users\Osman Ali\Desktop\Drift.pwn(2801) : error 001: expected token: ";", but found "]"
C:\Users\Osman Ali\Desktop\Drift.pwn(2801) : error 029: invalid expression, assumed zero
C:\Users\Osman Ali\Desktop\Drift.pwn(2801) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Re: Undiefined symbol error/argument type mismatch -
Scott Zulkifli - 08.09.2012
more information for script?
Re: Undiefined symbol error/argument type mismatch -
Dare Devil..... - 08.09.2012
Example?
wat kind of information?
Re: Undiefined symbol error/argument type mismatch -
Ballu Miaa - 08.09.2012
Show us these lines from the source.
1894
1972
1986
2801
Re: Undiefined symbol error/argument type mismatch -
Lordzy - 08.09.2012
You might have used the same named string "string128" in some other line.
That might causing errors again.
Btw post your script lines which has error.