SA-MP Forums Archive
constant/macro (symbol "OnPlayerCommandText") WTF ! Help ? - 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: constant/macro (symbol "OnPlayerCommandText") WTF ! Help ? (/showthread.php?tid=587764)



constant/macro (symbol "OnPlayerCommandText") WTF ! Help ? - CraTzy - 02.09.2015

error
pawn Код:
C:\Users\CraTzy\Desktop\DayZ\pawno\include\ocmd.inc(36) : warning 201: redefinition of constant/macro (symbol "OnPlayerCommandText")
C:\Users\CraTzy\Desktop\DayZ\gamemodes\DayZSA (2).pwn(2110) : warning 203: symbol is never used: "RNPC_StopPlayback"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
inclues
pawn Код:
#include <a_samp>
#include <rnpc>
#include <Dini>
#include <ocmd>
#include <Zombies>
#include "../include/gl_common.inc"
////Dialogs & colors below



Re: constant/macro (symbol "OnPlayerCommandText") WTF ! Help ? - Trollerz - 02.09.2015

SHOW US LINE 36


AW: constant/macro (symbol "OnPlayerCommandText") WTF ! Help ? - Kaliber - 02.09.2015

You used an old include, just update ocmd


Re: constant/macro (symbol "OnPlayerCommandText") WTF ! Help ? - CraTzy - 02.09.2015

what about other line ?
pawn Код:
C:\Users\CraTzy\Desktop\DayZ\gamemodes\DayZSA (2).pwn(2110) : warning 203: symbol is never used: "RNPC_StopPlayback"



Re: constant/macro (symbol "OnPlayerCommandText") WTF ! Help ? - karemmahmed22 - 02.09.2015

PHP код:
#pargma unused RNPC_StopPlayerback 



Re: constant/macro (symbol "OnPlayerCommandText") WTF ! Help ? - Trollerz - 02.09.2015

Quote:
Originally Posted by karemmahmed22
Посмотреть сообщение
PHP код:
#pargma unused RNPC_StopPlayerback 
BAD it will just unuse the COMMAND >.<
dude, make sure RNPC_StopPlayerback is used


Re: constant/macro (symbol "OnPlayerCommandText") WTF ! Help ? - Yashas - 02.09.2015

There are more advanced and faster command processors available now.
Quote:
Originally Posted by Trollerz
Посмотреть сообщение
BAD it will just unuse the COMMAND >.<
dude, make sure RNPC_StopPlayerback is used
Simply adding a callback will slow down the server a little bit since public function list lookup will take longer time. Its negligible though.