SA-MP Forums Archive
*** This topic title is not descriptive. - 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: *** This topic title is not descriptive. (/showthread.php?tid=390716)



*** This topic title is not descriptive. - Dusan01 - 07.11.2012

Hy guys i have created stats in TextDraw-s, I Have this error:
Код:
(75380 -- 75388) : error 025: function heading differs from prototype
In this lines:
Код:
stock ShowStatsDusan(playerid, player)
{
        TextDrawShowForPlayer(playerid,StatsTDLiniaGore[playerid]);
        TextDrawShowForPlayer(playerid,StatsTDSredina[playerid]);
        TextDrawShowForPlayer(playerid,StatsTDEXOTIQ[playerid]);
        TextDrawShowForPlayer(playerid,StatsTDLiniaGore[playerid]);
	return 0;
}



Re: Stock Error - XtremeR - 07.11.2012

this should work:
pawn Код:
stock ShowStatsDusan(playerid)
{
        TextDrawShowForPlayer(playerid,StatsTDLiniaGore[playerid]);
        TextDrawShowForPlayer(playerid,StatsTDSredina[playerid]);
        TextDrawShowForPlayer(playerid,StatsTDEXOTIQ[playerid]);
        TextDrawShowForPlayer(playerid,StatsTDLiniaGore[playerid]);
    return 0;
}
you can use it like:
pawn Код:
ShowStatsDusan(playerid);
hope it helps..


Re: Stock Error - Dusan01 - 07.11.2012

Quote:
Originally Posted by XtremeR
Посмотреть сообщение
this should work:
pawn Код:
stock ShowStatsDusan(playerid)
{
        TextDrawShowForPlayer(playerid,StatsTDLiniaGore[playerid]);
        TextDrawShowForPlayer(playerid,StatsTDSredina[playerid]);
        TextDrawShowForPlayer(playerid,StatsTDEXOTIQ[playerid]);
        TextDrawShowForPlayer(playerid,StatsTDLiniaGore[playerid]);
    return 0;
}
you can use it like:
pawn Код:
ShowStatsDusan(playerid);
hope it helps..
Ty working