Commands not working. (ZCMD)
#1

I've tried using just CMD: but then I get this error:
Код:
C:\Users\KillingPigs123\Desktop\Cops and Robbers\gamemodes\prisonrp.pwn(323) : error 017: undefined symbol "makemeadmin"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
I've tried using lower letters (just "cmd") but then I get Error: Unknown command in game.
I tried using ZCMD: but then I get Error: Unknown command as well in game.

Here is my code for the command:

Код:
ZCMD:makemeadmin(playerid, params[])
{
	SendClientMessage(playerid, COLOR_RED, "Not today son.");
	
	return 1;
}
#pragma unused makemeadmin
and I put it underneath this:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	return 0;
}
I have the following includes:
#include <a_samp>
#include <zcmd>
#include <YSI\y_ini>
#include <sscanf2>

It sais nothing about these commands in my server log.
Reply
#2

PHP код:
CMD:makemeadmin(playeridparams[])
{
    
SendClientMessage(playeridCOLOR_RED"Not today son.");
    
    return 
1;
}
#pragma unused makemeadmin 
Well, when using ZCMD, it doesn't been to add ZCMD in the command. Use only CMD for a command!

And don't put it underneath anything.
Reply
#3

Quote:
Originally Posted by Karan007
Посмотреть сообщение
PHP код:
CMD:makemeadmin(playeridparams[])
{
    
SendClientMessage(playeridCOLOR_RED"Not today son.");
    
    return 
1;
}
#pragma unused makemeadmin 
Well, when using ZCMD, it doesn't been to add ZCMD in the command. Use only CMD for a command!

And don't put it underneath anything.
That gives me errors, I stated in the topic if you want to see the error code.
Reply
#4

Nevermind, fixed this bug.
Reply
#5

Quote:
Originally Posted by KillingPigs123
Посмотреть сообщение
Nevermind, fixed this bug.
what was the fix? I have a similar problem and it's killing me
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)