SA-MP Forums Archive
Params? - 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: Params? (/showthread.php?tid=205697)



Params? - SamyRomafia - 02.01.2011

pawn Код:
dcmd_enablegoto(playerid,params[])//4856
{
        if(cgoto[playerid])return SendClientMessage(playerid, 0xFFFF00FF, "Server: You have already allow other players goto tou.");
        cgoto[playerid] = true;
        return SendClientMessage(playerid, 0x00FF00FF, "Server: You have allowed other players goto you");
}


dcmd_disablegoto(playerid, params[])
{
    if(!cgoto[playerid])return SendClientMessage(playerid, 0xFFFF00FF, "Server: You have already forbid other players goto you");
    cgoto[playerid] = false;
    return SendClientMessage(playerid, 0xFF0000FF, "Server: You have forbid other players goto you");
}

Код:
C:\Users\proprietario\Desktop\Drifting Stunting Racing\filterscripts\LuxAdmin.pwn(4856) : warning 203: symbol is never used: "params"
C:\Users\proprietario\Desktop\Drifting Stunting Racing\filterscripts\LuxAdmin.pwn(4864) : warning 203: symbol is never used: "params"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.



Re: Params? - JamesC - 02.01.2011

pawn Код:
#pragma unused params
On the first line of both the commands.


Re: Params? - SamyRomafia - 02.01.2011

thanks