SA-MP Forums Archive
syntax error in the expression, or invalid function call - 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: syntax error in the expression, or invalid function call (/showthread.php?tid=637058)



syntax error in the expression, or invalid function call - anltrn - 07.07.2017

Help Please...

Код:
format(str, 128, "%s~n~-%i (%s)", getName, floatround(currentHpLoss[0][issuerid][playerid]), weaponName[weaponid]);



Re: syntax error in the expression, or invalid function call - iLearner - 07.07.2017

Pretty sure getName is supposed to be getName(playerid).


Re: syntax error in the expression, or invalid function call - Freedom. - 07.07.2017

You probably editing damage TD

Код:
format(str, 128, "%s~n~-%i (%s)", getName(issuerid), floatround(currentHpLoss[0][issuerid][playerid]), weaponName[weaponid]);



Re: syntax error in the expression, or invalid function call - anltrn - 07.07.2017

Quote:
Originally Posted by Freedom.
Посмотреть сообщение
You probably editing damage TD

Код:
format(str, 128, "%s~n~-%i (%s)", getName(issuerid), floatround(currentHpLoss[0][issuerid][playerid]), weaponName[weaponid]);
Thanks +rep


Re: syntax error in the expression, or invalid function call - anltrn - 07.07.2017

Quote:
Originally Posted by iLearner
Посмотреть сообщение
Pretty sure getName is supposed to be getName(playerid).
thank you