19.11.2016, 09:19
Quote:
Can you show me the creation of variable 'option'?
+ 'params[6]' - whats that for? |
Here is the option var
PHP код:
CMD:seteventinfo(playerid, params[])
{
if(!IsAllowed(playerid, 3)) return NoAuth(playerid);
new option[32];
if(sscanf(params, "s[10]", option))
{
SendClientMessage(playerid, COLOR_WHITE, "UASGE: /seteventinfo [option]");
SendClientMessage(playerid, COLOR_GREY, "Available Options: Health || Armour || Weapon || Position || Text");
return 1;
}