18.05.2017, 19:17
Hello, iam trying to make a command like
/query Loinal level 10
or
/query Loinal kills 9
iam a bit confused idk how can i make that any tips??
Im using mysql R41-2
/query Loinal level 10
or
/query Loinal kills 9
iam a bit confused idk how can i make that any tips??
PHP код:
CMD:query(playerid, params[])
{
new option[20];
if(sscanf(params,"s[24]si"))
{
return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /query [Account] [coloumn] [Value]");
}
if(!strcmp(option, "level", true))
{
return 1;
}
if(!strcmp(option, "kills", true))
{
return 1;
}
return 1;
}