Multiple Errors - 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)
+--- Thread: Multiple Errors (
/showthread.php?tid=417122)
Multiple Errors -
Joshman543 - 19.02.2013
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);
Re: Multiple Errors -
BlackBank - 19.02.2013
Could you maybe show the MaskID function?
Re: Multiple Errors -
Joshman543 - 19.02.2013
Sure thing.
new rand = 1000 + random(8999);
MaskID[playerid] = rand;
Re: Multiple Errors -
bensmart469 - 19.02.2013
format(string, sizeof(string), "Stranger_%s says: %s", MaskID[playerid], text);
Re: Multiple Errors -
BlackBank - 19.02.2013
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.
Re: Multiple Errors -
Joshman543 - 19.02.2013
I love you