13.07.2011, 14:08
@ TAGProductions, it will result as Argument Type Mismatch....... ( Ohai [2F2F]Peace )
Sadly, you didn't know that you forgot a bracket here
Should be
Saw the bracket?
And at the end of OnPlayerCommandText, you forgot a closing bracket, the correct OnPlayerCommandText is
Replace with that code ( OnPlayerCommandText only )
For loose indentation, you may fix it yourself, if you are too lazy
Sadly, you didn't know that you forgot a bracket here
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) {
And at the end of OnPlayerCommandText, you forgot a closing bracket, the correct OnPlayerCommandText is
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp("/enter", cmdtext, true, 6) == 0)
{
if(PlayerToPoint(10,playerid,2860.3044,1808.9399,10.8203))
{
SetPlayerPos(playerid,2306.5095,-15.9654,26.7496);
return 1;
}
return 0;
}
if (strcmp("/exit", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,2306.5095,-15.9654,26.7496))
{
SetPlayerPos(playerid,2860.3044,1808.9399,10.8203);
return 1;
}
}
return 0;
}
For loose indentation, you may fix it yourself, if you are too lazy
pawn Код:
#pragma tabsize 0