SA-MP Forums Archive
Help me out! Dcmd! - 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: Help me out! Dcmd! (/showthread.php?tid=79178)



Help me out! Dcmd! - waza75 - 26.05.2009

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(freeze, 6, cmdtext);
if (!strlen(params))
{
SendClientMessage(playerid, 0xFFFFFF, "Usage: /freeze [playerid]);
return 1;
}
new otherplayer = strval(params);
TogglePlayerControllable(otherplayer, false);
return 1;
}

6 errors with this. And yes I added the define line.....

Quote:

E:\samp02Xserver.win32\pawno\Dmcd.pwn(99) : error 017: undefined symbol "dcmd_freeze"
E:\samp02Xserver.win32\pawno\Dmcd.pwn(100) : error 017: undefined symbol "params"
E:\samp02Xserver.win32\pawno\Dmcd.pwn(102) : error 037: invalid string (possibly non-terminated string)
E:\samp02Xserver.win32\pawno\Dmcd.pwn(102) : error 029: invalid expression, assumed zero
E:\samp02Xserver.win32\pawno\Dmcd.pwn(102) : error 017: undefined symbol "freeze"
E:\samp02Xserver.win32\pawno\Dmcd.pwn(102) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.

Help me out...


Re: Help me out! Dcmd! - Rks25 - 26.05.2009

please check how to use it, go wiki and search here.


Re: Help me out! Dcmd! - waza75 - 26.05.2009

Link?
Or could one of you get it right for me and explain what I did wrong?



Re: Help me out! Dcmd! - DracoBlue - 26.05.2009

For instance
http://forum.sa-mp.com/index.php?topic=100530.0

- Draco


Re: Help me out! Dcmd! - waza75 - 26.05.2009

Ty hope to learn this today
Basics of it ofc. :0