04.02.2015, 08:24
(
Последний раз редактировалось Johnny_Ionut; 04.02.2015 в 10:11.
)
Hello
Anyone can help me?
This command doesn't work. Why?
Anyone can help me?
This command doesn't work. Why?
pawn Код:
CMD:gethelper(playerid, params[])
{
new tmp[256];
new string[256];
new idx;
tmp = strtok(params, idx);
if(sscanf(params, "ud",params[0],params[1])) return SendClientMessage(playerid, COLOR_WHITE, "Type: /gothelper [SLOT] [NAME]");
if (Info[playerid][pAdmin] >= 4)
{
new stat;
stat = params[0];
switch (stat)
{
case 1:
{
new file = ini_openFile("/helpers.ini");
INI_WriteString(file,"HELPER1",params[1]);
format(string, sizeof(string), "Helper1 is now: %s", string);
SendClientMessage(playerid, COLOR_WHITE, string);
ini_closeFile(file);//
}
default:
{
SendClientMessage(playerid, COLOR_WHITE, "Invalid ID");
}
}
}
return 1;
}