Error, help - 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: Error, help (
/showthread.php?tid=599184)
Error, help -
Brys - 22.01.2016
Код:
E:\Official Server\filterscripts\coins.pwn(48) : error 035: argument type mismatch (argument 1)
E:\Official Server\filterscripts\coins.pwn(49) : error 035: argument type mismatch (argument 1)
E:\Official Server\filterscripts\coins.pwn(50) : error 035: argument type mismatch (argument 1)
E:\Official Server\filterscripts\coins.pwn(51) : error 035: argument type mismatch (argument 1)
E:\Official Server\filterscripts\coins.pwn(52) : error 035: argument type mismatch (argument 1)
E:\Official Server\filterscripts\coins.pwn(53) : error 035: argument type mismatch (argument 1)
E:\Official Server\filterscripts\coins.pwn(147) : error 035: argument type mismatch (argument 2)
Lines 48-53
PHP код:
Gtext[playerid] = TextDrawCreate(589 ,104 , " ");
TextDrawFont(Gtext , 3);
TextDrawLetterSize(Gtext , 0.5, 3.5);
TextDrawColor(Gtext , 0x949400FF);
TextDrawSetOutline(Gtext , false);
TextDrawSetProportional(Gtext , true);
TextDrawSetShadow(Gtext , 1);
147:
PHP код:
CMD:mygears(playerid, params[])
{
new string[150];
format(string, sizeof(string), "%d Gears!", Global_Name, PlayerInfo[playerid][GoldCoins]);
TextDrawSetString(Gtext[playerid],string);
TextDrawShowForPlayer(playerid,Gtext);
}
Any help?!, +rep for help, thank you.
Re: Error, help -
BiosMarcel - 22.01.2016
Text:Gtext = .... not just Gtext = ....
Re: Error, help -
amirm3hdi - 22.01.2016
How did you define the Gtext variable?