21.08.2012, 09:44
So im getting arguments mismatch 1 and 2 on the same line....
Here is the command
And the error is on
Please help
Thanks
Here is the command
pawn Код:
command(remotewarn, playerid, params[])
{
new pName, name[128], reason[128], string[128];
if(sscanf(params, "ds", name, reason))
{
if(Player[playerid][AdminLevel] >= 5)
{
SendClientMessage(playerid, WHITE, "SYNTAX: /remotewarn [name] [reason]");
}
}
else
{
if(Player[playerid][AdminLevel] >= 5)
{
GetPlayerName(name, pName, sizeof(pName));
format(string, sizeof(string), "Accounts/%s.ini", name);
if(fexist(string))
{
if(strcmp(Player[pName][Warning1], "None", true) == 0)
{
SendClientMessage(playerid, WHITE, "You can't prison a higher level administrator (or equal to your rank).");
}
else
{
SendClientMessage(playerid, WHITE, "dfhgkfjd");
}
}
else
{
SendClientMessage(playerid, WHITE, "Account not found.");
}
}
}
}
pawn Код:
GetPlayerName(name, pName, sizeof(pName));
Thanks