Can someone help me through this /me
#1

http://pastebin.com/963HRNMv

Hi All, Im trying to make this /me command but When I compile I get: .pwn(296) : warning 203: symbol is never used: "me"

Anyone got any ideas to why and can help me through this.
Reply
#2

Where did you place this code?
Reply
#3

Quote:
Originally Posted by Jstylezzz
Посмотреть сообщение
Where did you place this code?
public OnPlayerText(playerid, text[])

however I have also tried it in

public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}

If it helps you I got the start from https://sampforum.blast.hk/showthread.php?tid=336052
Reply
#4

Ah, there you have the problem ;)
The CMD:something codes have to be placed outside any callback.

Example:
pawn Код:
#include <a_samp>
//your includes


public OnGameModeInit() //this is a callback
{

}

CMD:somecommand(playerid,params[])
{
//contents
}

public SomeOtherCallback()
{

}
As you can see, the CMD code is placed outside the callbacks, which means outside of any brackets ( '{' and '}')
I hope this clarified things a little :)
Reply
#5

Heres a link to the full script if anyone can give us a hand: http://pastebin.com/2q2aPhC6
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)