Multiple Errors
#1

Hello when I try and compile I'm receiving these errors:
Код:
C:\Users\Aaron\Desktop\Mask FilterScript\gamemodes\mask.pwn(75) : error 012: invalid function call, not a valid address
C:\Users\Aaron\Desktop\Mask FilterScript\gamemodes\mask.pwn(75) : warning 215: expression has no effect
C:\Users\Aaron\Desktop\Mask FilterScript\gamemodes\mask.pwn(75) : error 001: expected token: ";", but found ")"
C:\Users\Aaron\Desktop\Mask FilterScript\gamemodes\mask.pwn(75) : error 029: invalid expression, assumed zero
C:\Users\Aaron\Desktop\Mask FilterScript\gamemodes\mask.pwn(75) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Here line 75:
Код:
format(string, sizeof(string), "Stranger_%s says: %s", MaskID(playerid), text);
Reply
#2

Could you maybe show the MaskID function?
Reply
#3

Sure thing.

new rand = 1000 + random(8999);
MaskID[playerid] = rand;
Reply
#4

format(string, sizeof(string), "Stranger_%s says: %s", MaskID[playerid], text);
Reply
#5

Quote:
Originally Posted by Joshman543
Посмотреть сообщение
Sure thing.

new rand = 1000 + random(8999);
MaskID[playerid] = rand;
So this is not a function, but an array/variable.
Change the ( ) to [ ] in your format.
Reply
#6

I love you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)