Okay guys. Sorry for not answear, my work didn't allow me for it. I did it, that was only a fucked up string.
PS there's quotes like this ' ' doesn't work in MySQL, you have to use ` `. That's why i had a little mish mash in my head, because i did try quotes, but the first ones.
Now, to not opening new topic will ask shortly. I did download that plugin
http://forums.alliedmods.net/showthread.php?p=1824790 (version light). And i did try to change it. It works like that, if i have buyed a slot, then that menu dont allow me to buy a slot again, because it says me the rest of my slot's time. It's okay, but i did try to change it. That what i wanted to do is to allow you to click a slot to buy, but if you already have it, it says you that. I thought it gonna work, but when compiling theres no others errors than one "
Error 100: Function Prototypes do not match"
And that what i've changed is:
This:
PHP Code:
public Action:CommandLP(client, args)
{
new Handle:menu = CreateMenu(MenuHandler);
SetMenuTitle(menu, "Loyalty Point System");
AddMenuItem(menu, "1", "Show LP");
if (HaveClientRS(client))
{
new String:s_menu5[100];
new client_rsmin = GetRSMIN(client);
if (client_rsmin <= 60)
{
Format(s_menu5, sizeof(s_menu5), "Your RS access end in %i min", GetRSMIN(client));
}
else if (client_rsmin <= 1440)
{
Format(s_menu5, sizeof(s_menu5), "Your RS access end in %i h", GetRSMIN(client)/60);
}
else
{
Format(s_menu5, sizeof(s_menu5), "Your RS access end in %i d", GetRSMIN(client)/1440);
}
AddMenuItem(menu, "6", s_menu5, ITEMDRAW_DISABLED);
}
else
{
AddMenuItem(menu, "7", "Reserved Slot");
}
DisplayMenu(menu, client, MENU_TIME_FOREVER);
return Plugin_Handled;
}
To this:
PHP Code:
public Action:CommandLP(client, args)
{
new Handle:menu = CreateMenu(MenuHandler);
SetMenuTitle(menu, "Loyalty Point System");
AddMenuItem(menu, "1", "Show LP");
AddMenuItem(menu, "7", "Reserved Slot");
return Plugin_Handled;
}
And this:
PHP Code:
public MenuRS(Handle:menu, MenuAction:action, param1, param2)
{
if (action == MenuAction_Select)
{
new String:info[32];
GetMenuItem(menu, param2, info, sizeof(info));
new lp = GetLP(param1)
switch(StringToInt(info))
{
case 1:
{
if (lp >= price_rs_1day)
{
RemoveLP(param1, price_rs_1day)
GiveRS(param1, 1440);
if (IsClientInGame(param1))
{
PrintToChat(param1, "\x04[LP]\x01 You have bought RS! If Server is full, connect by console to use your reserved slot.")
}
}
else
{
PrintToChat(param1, "\x04[LP]\x01 You have %i lp, but you need %i for 1 Day RS!", lp, price_rs_1day);
}
}
case 2:........
To this:
PHP Code:
public MenuRS(Handle:menu, MenuAction:action, param1, param2, client)
{
if (action == MenuAction_Select)
{
new String:info[32];
GetMenuItem(menu, param2, info, sizeof(info));
new lp = GetLP(param1)
switch(StringToInt(info))
{
case 1:
{if (HaveClientRS(client))
{
PrintToChat(param1, "You already have a slot");
}
else
{
if (lp >= price_rs_1day)
{
RemoveLP(param1, price_rs_1day)
GiveRS(param1, 1440);
if (IsClientInGame(param1))
{
PrintToChat(param1, "\x04[LP]\x01 You have bought RS! If Server is full, connect by console to use your reserved slot.")
}
}
else
{
PrintToChat(param1, "\x04[LP]\x01 You have %i lp, but you need %i for 1 Day RS!", lp, price_rs_1day);
}
}
}
case 2:...
The full code of that plugin you can check in the link above. Can anyone tell me how to fix it?