07.05.2015, 23:00
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;
}
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;
}