19.11.2015, 16:44
I using the include mSelection so was thinking is there possible make this for weapon too?
here is an ec
but i get this
here is an ec
Код:
} COMMAND:testgun(playerid, params[]) { ShowModelSelectionMenu(playerid, gunlist, "Gun Menu"); return 1; }
PHP код:
}
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == gunlist)
{
if(response)
{
SendClientMessage(playerid, COLOR_WHITE, "Weapon 1");
GivePlayerWeaponEx(playerid, modelid);
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled gun selection");
return 1;
}
return 1;
Код:
warning 202: number of arguments does not match definition