SA-MP Forums Archive
need help with command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help with command (/showthread.php?tid=205129)



need help with command - xir - 31.12.2010

I need help with this command

pawn Код:
dcmd_#(playerid, params[])
{
    new pid, string[210];
        if(sscanf(params, "us", pid, params[2])) return SendClientMessage(playerid, Yellow, "Usage: /# <message>");
    new help[MAX_PLAYER_NAME];
    GetPlayerName(playerid, help, sizeof;
    format(string, sizeof(string), "(Help) %s(ID: %i)",help, playerid, pid, params[2]);
    MessageToAdmins(AdminColor, string);
    return 1;
}
error line..
pawn Код:
GetPlayerName(playerid, help, sizeof;



Re: need help with command - MadeMan - 31.12.2010

pawn Код:
GetPlayerName(playerid, help, sizeof(help));



Re: need help with command - xir - 31.12.2010

Works! Thank you