How to Lock&Unlock In 1 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)
+--- Thread: How to Lock&Unlock In 1 Command? (
/showthread.php?tid=332292)
How to Lock&Unlock In 1 Command? -
Raiden Dragneel - 07.04.2012
https://sampforum.blast.hk/showthread.php?tid=330973
Re: How to Lock&Unlock In 1 Command? -
Fires - 07.04.2012
in the top
the cmd
pawn Код:
CMD:lock(playerid, params[])
{
if(locked[playerid] == 1)
{
FUNTION TO UN LOCK
}
else
{
FUNTION TO LOCK
}
return 1;
}
Re: How to Lock&Unlock In 1 Command? -
Raiden Dragneel - 08.04.2012
Код:
C:\Game\GTA - San Andreas\Windows Server\pawno\test.pwn(148) : warning 203: symbol is never used: "CMD"
C:\Game\GTA - San Andreas\Windows Server\pawno\test.pwn(148) : error 055: start of function body without function header
C:\Game\GTA - San Andreas\Windows Server\pawno\test.pwn(148 -- 162) : error 010: invalid function or declaration
C:\Game\GTA - San Andreas\Windows Server\pawno\test.pwn(148 -- 166) : error 010: invalid function or declaration
C:\Game\GTA - San Andreas\Windows Server\pawno\test.pwn(148 -- 166) : fatal error 107: too many error messages on one line
I got an error, I actually don't know how to this. >.<
Re: How to Lock&Unlock In 1 Command? -
emokidx - 08.04.2012
pawn Код:
CMD:lock(playerid, params[])
{
if(locked[playerid] == 1)
{
FUNTION TO UN LOCK
}
else
{
FUNTION TO LOCK
locked[playerid]=0; // and put the value to 0 here
}
return 1;
}
it is done with zcmd, it's a command processor, search for it.