SA-MP Forums Archive
Can someone help me through this /me - 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: Can someone help me through this /me (/showthread.php?tid=454391)



Can someone help me through this /me - Izutah - 28.07.2013

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.


Re: Can someone help me through this /me - Jstylezzz - 28.07.2013

Where did you place this code?


Re: Can someone help me through this /me - Izutah - 28.07.2013

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


Re: Can someone help me through this /me - Jstylezzz - 28.07.2013

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 :)


Re: Can someone help me through this /me - Izutah - 28.07.2013

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