Help me out! Dcmd!
#1

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...
Reply
#2

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

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

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

- Draco
Reply
#5

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


Forum Jump:


Users browsing this thread: 2 Guest(s)