(40870) : warning 202: number of arguments does not match definition
ThuocLaoInfo[playerid][tlBar] = CreatePlayerProgressBar(playerid, 50.000000, 321.000000, 80.500000, 9.199999, 0xFAAA99, 100.0000, 0); |
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; }
native PlayerBar:CreatePlayerProgressBar(playerid, Float:x, Float:y, Float:width=55.5, Float:height=3.2, color, Float:max=100.0);
ThuocLaoInfo[playerid][tlBar]
new PlayerBar: Thuoco.....
ProgressBar: tlBar