[Scripting Help]warning 202: number of arguments does not match definition
#1

Hi everybody
I am compiling a system
And I got an error at CMD in the hope people help
Erro:
Код:
(40870) : warning 202: number of arguments does not match definition
Line 40870:
Quote:

ThuocLaoInfo[playerid][tlBar] = CreatePlayerProgressBar(playerid, 50.000000, 321.000000, 80.500000, 9.199999, 0xFAAA99, 100.0000, 0);

Full CMD:
Код:
CMD:thuoclao(playerid, params[])
{
	new type[128];
	if(sscanf(params,"s[128]",type)) return SendClientMessageEx(playerid, COLOR_GREY, "SU DUNG: /thuoclao [hut,trogiup,credits]");
    if (strcmp("hut", type, true, 10) == 0)
	{
		if(PlayerInfo[playerid][pThuocLao] == 0) return SendClientMessageEx(playerid, COLOR_GREY, "Ban khong co thuoc lao.");
	    if(ThuocLaoInfo[playerid][tlDangHut] == 1) return SendClientMessageEx(playerid, COLOR_GREY, "Ban dang hut thuoc lao.");
        ThuocLaoInfo[playerid][tlBar] = CreatePlayerProgressBar(playerid, 50.000000, 321.000000, 80.500000, 9.199999, 0xFAAA99, 100.0000, 0);
		BatDauHut(playerid);
		return 1;
	}
	else if (strcmp("trogiup", type, true, 10) == 0)
	{
	    ShowPlayerDialog(playerid,69691,0,"Tro giup thuoc lao","De hut su dung lenh /thuoclao hut\nNhan lan luoc chuot trai va phai\n\
	    LMB la Chuot Trai,RMB la Chuot Phai\n\
	    Neu nhan sai 2 lan se bi sac thuoc\nSau khi hut se vao trang thai phe thuoc\nCo kha nang bi shock thuoc\nHoi 100% mau","Oke","");
	}
	else if (strcmp("credits", type, true, 10) == 0)
	{
	    ShowPlayerDialog(playerid,69691,0,"Credits Thuoc lao","Script by Gasman\nSscanf by ******\nZcmd by ZeeX\nProgress2 by SouthClaw","Oke","");
	}
	return 1;
}
Reply
#2

These are the correct definition for a progress bar,
You are missing max and other,

Код:
native PlayerBar:CreatePlayerProgressBar(playerid, Float:x, Float:y, Float:width=55.5, Float:height=3.2, color, Float:max=100.0);
and Your
Код:
ThuocLaoInfo[playerid][tlBar]
should be like
Код:
new PlayerBar: Thuoco.....
Reply
#3

PHP код:
ProgressBartlBar 
in the array.

^^ above response.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)