SA-MP Forums Archive
? error - 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)
+--- Thread: ? error (/showthread.php?tid=360664)



? error[solved] - Gangster-rocks - 18.07.2012

solved and i reped all who tried to Help


Re: ? error - Dan. - 18.07.2012

This should work:
pawn Код:
if(sscanf(params,"u",id)) SendClientMessage(playerid, COLOR_WHITE,"USAGE:/invite [ID/Partofname]");
And make sure you have "new id;" somewhere before the sscanf line.


Re: ? error - Gangster-rocks - 18.07.2012

still the same


Re: ? error - Dan. - 18.07.2012

Weird, added the line to my pawno and it worked. Give us the whole code.


Re: ? error - Tuntun - 18.07.2012

what you try to create?


Re: ? error - Gangster-rocks - 18.07.2012

pawn Код:
CMD:invite(playerid,params)
{
    new pName[MAX_PLAYER_NAME],iName[MAX_PLAYER_NAME],id,string[128];
    if(pInfo[playerid][pRank] < 8) SendClientMessage(playerid,-1,"You May not Use this command");
    if(sscanf(params,"u",id)) SendClientMessage(playerid,-1,"USAGE:invite [id/partofname]");
    return 1;
}
i'm still working on it


Re: ? error - Gangster-rocks - 18.07.2012

Bumb Please help.


Re: ? error - Aprezt - 18.07.2012

you want invite a player to your faction right ?


Re: ? error - Dan. - 18.07.2012

pawn Код:
CMD:invite(playerid,params)
{
    new pName[MAX_PLAYER_NAME], iName[MAX_PLAYER_NAME], id, string[128];
    if(pInfo[playerid][pRank] < 8) return SendClientMessage(playerid, 0xFFFFFFAA, "You May not Use this command");
    if(sscanf(params,"u",id)) return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE:invite [id/partofname]");
    return 1;
}