[HELP]
#1

there's something wrong in this command? why ta giving this error here error 021: symbol already defined: "OnPlayerCommandText"

public OnPlayerCommandText (playerid, cmdtext [])
{

if (strcmp (cmdtext, "/ abrirte", true) == 0)
{
Moveobject (portaodaalq, 118.40000152588, 562.29998779297, -3.7999999523163,1); // OPEN
return 1;
}
if (strcmp (cmdtext, "/ fecharte", true) == 0)
{
Moveobject (portaodaalq, 118.400390625, 562.2998046875, 2.9000000953674,1); // CLOSED

return 1;
}

return 0;
}
Reply
#2

Did you used any command processor?
Reply
#3

I wanted to use it to open and close the gate of my hq
Reply
#4

Quote:
Originally Posted by rodrigordr
Посмотреть сообщение
I wanted to use it to open and close the gate of my hq
Show us your includes, mostly located at the top of a script
Reply
#5

#include < a_samp >
#include < Dini >
#if defined MAX_VEHICLES
#undef MAX_VEHICLES
#define MAX_VEHICLES (1120) //Nъmero de CARROS
#endif
#if defined MAX_PLAYERS
#undef MAX_PLAYERS
#define MAX_PLAYERS (101) //Nъmero de Slots + 1
Reply
#6

Do a search for OnPlayerCommandText on your script, see if you have it twice. If so, combine them. If not, it must be something you included (like a shitty cmd processor; try YCMD, ZCMD, or even the plugin - MCMD)
Reply
#7

Well you don't have another command processor, so see if you have OnplayerCommandText located twice in your script like Crayder said above
Reply
#8

I took care THANKS TO ALL WHO HELPED !!
Reply
#9

Quote:
Originally Posted by rodrigordr
Посмотреть сообщение
I took care THANKS TO ALL WHO HELPED !!
NO PROBLEM SIR
Reply
#10

Please include a solution next time so others that have a similar issue can see your solution.

Also, use a proper topic title so people can find your thread easily.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)