Undiefined symbol error/argument type mismatch
#1

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
pawn Код:
new string128;
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);
Reply
#2

you should do it like this

pawn Код:
new string[128];
you must add the number in the [ ]
Reply
#3

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

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

more information for script?
Reply
#6

Example?
wat kind of information?
Reply
#7

Show us these lines from the source.
1894
1972
1986
2801
Reply
#8

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


Forum Jump:


Users browsing this thread: 3 Guest(s)