Help Symbol Is Never Used "playerid"
#1

i have a problems not problems, warning
i have this CMD

Код:
CMD:bukahp(playerid, params[])
{
    MegangHP[playerid] = 1;
    TDHP(playerid);
	TampilkanTextDraw(playerid);
	return 1;
}
stock TDHP(playerid) //line 124
{
Textdraw0 = TextDrawCreate(609.600158, 130.666641, "LD_SPAC:white");
TextDrawLetterSize(Textdraw0, 0.000000, 0.000000);
TextDrawTextSize(Textdraw0, -120.800048, 222.506652);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, 0);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 4);
return 1;
}

but when i compile i get this warnings

Код:
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(124) : warning 203: symbol is never used: "playerid"
Reply
#2

remove this (playerid) of stock TDHP(playerid)
Reply
#3

PHP код:
stock TDHP(playerid//line 124
{
Textdraw0 TextDrawCreate(609.600158130.666641"LD_SPAC:white");
TextDrawLetterSize(Textdraw00.0000000.000000);
TextDrawTextSize(Textdraw0, -120.800048222.506652);
TextDrawAlignment(Textdraw01);
TextDrawColor(Textdraw00);
TextDrawSetShadow(Textdraw00);
TextDrawSetOutline(Textdraw00);
TextDrawFont(Textdraw04);
return 
1;

You create a function like function(playerid), but never used playerid in that function
Reply
#4

Your stock function isn't using the playerid parameter.

Remove playerid from the stock function and it should work.
Reply
#5

Код:
stock TutupTDHP()
Код:
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(60) : warning 202: number of arguments does not match definition
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(94) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(95) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(96) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(97) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(98) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(99) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(100) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(101) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(102) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(103) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(104) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(105) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(106) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(107) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(108) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(109) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(110) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(111) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(112) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(113) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(114) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(115) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(116) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(117) : error 017: undefined symbol "playerid"
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\HPTelkomsel(IND).pwn(120) : warning 203: symbol is never used: "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


24 Errors.
Reply
#6

FIXED Thanks GeneralAref
Reply
#7

AH warning 202: number of arguments does not match definition
Reply
#8

same line
Reply
#9

TDHP();
SHIT Wrong THERE -,-
Fixed -,-
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)