Another Smalll Error - 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: Another Smalll Error (
/showthread.php?tid=528396)
Another Smalll Error -
GeekSiMo - 27.07.2014
The error
Quote:
C:\Users\GeekSiMo\Desktop\Xtremies Server\gamemodes\GM.pwn(2545) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
|
The Line
Quote:
format(string, sizeof(string), "%s{FFFFFF}Hit on %s {FFFFFF}for {FF0000}$%i {FFFFFF}By %s \n",string, GetColorNameID, PlayerInfo[i][Hit], PlayerInfo[i][HitContract]);
|
Re: Another Smalll Error -
Jefff - 27.07.2014
GetColorNameID(i) ?
Re: Another Smalll Error -
GeekSiMo - 27.07.2014
It is not the problem skip it, i made it in all the script. i think PlayerInfo[i][HitContract] cuz i stoked there a name
Re: Another Smalll Error -
Jefff - 27.07.2014
No you forgot (i) after this function in format
Re: Another Smalll Error -
Clad - 27.07.2014
pawn Код:
new hitammount = PlayerInfo[i][Hit]
format(string, sizeof(string), "%s{FFFFFF}Hit on %s {FFFFFF}for {FF0000}$%i {FFFFFF}By %s \n",string, GetColorNameID, hitammount, PlayerInfo[i][HitContract]);
Not sure, Try this.
Re: Another Smalll Error -
GeekSiMo - 27.07.2014
Oh Yeahh !!! Thank You So Much

DD and sorry +Rep