03.01.2012, 12:50
It compiles for me now!
However, about the undefined symbol "cmdtext", I don't know why.
Edit: Ironboy was faster
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext, "/entermech", true))
{
if(!IsPlayerInRangeOfPoint(playerid,5,1790.2391,-1720.8370,13.5395))
{
SetPlayerPos(playerid,-2029.798339,-106.675910,1035.171875);
SetPlayerInterior(playerid,3);
GameTextForPlayer(playerid,"Welcome to Cobomau Mechanics",4000,6);
return 1;
}
}
return 0;
}
Edit: Ironboy was faster