Pawno : error 017: undefined symbol "text"
#1

#include <a_samp>
#include <ZCMD>
#include <DOF2>
#include <sscanf2>
#include <ppc_deftexts>

#if defined FILTERSCRIPT


#endif



public OnPlayerConnect(playerid)
{
if(IsPlayerAdmin(playerid)== 2) //troque pela variavel de admin
{
new string[256];
format(string,sizeof(string),"[ID:%d][ADM-RCON] %s ",playerid,text);
SendPlayerMessageToAll(playerid,string);
return false;
}
//outros c?digos.
return false;
}


---------------------------------------------------------------------------------------------------------------

desculpa ae, é que não entendo muito de pawno
Reply
#2

The error is pretty much exactly what it says. The variable text needs to be created and set to something. It would probably be easier if you asked in http://forum.sa-mp.com/forumdisplay.php?f=34 section though.
Reply
#3

we don't have text on OnPlayerConnect !!!
you must add this to OnPlayerText.
pawn Код:
public OnPlayerText(playerid, text[])
and when you want drop the pawn code in forum. before code add [PAWN] and after that [/ PAWN].
but you must delete the space between / and PAWN. will be /PAWN
sorry for my bad english.
Reply
#4

try?

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(IsPlayerAdmin(playerid)== 2) //troque pela variavel de admin
    {
    new string[256];
    format(string,sizeof(string),"[ID:%d][ADM-RCON] %s ",playerid,text);
    SendPlayerMessageToAll(playerid,string);
    return false;
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)