Quote:
Originally Posted by iggy1
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/enterfd", cmdtext, true, 6) == 0) { if(IsPlayerInRangeOfPoint(playerid, 5.0, 1342.4213867188,-1669.3712158203,17.7265625)) { //^^^range SetPlayerPos(playerid,1289.4602050781,-1604.3106689453,1242.7280273438); return 1; }
} if (strcmp("/exitfd", cmdtext, true, 6) == 0) { if(IsPlayerInRangeOfPoint(playerid,5.0,1289.4602050781,-1604.3106689453,1242.7280273438)) { SetPlayerPos(playerid,1342.4213867188,-1669.3712158203,17.7265625); return 1; } } return 0; }
Missing closing brace and "IsPlayerInRangeOfPoint" has range parameter. Not touched the indentation. (incase you didn't notice lol)
|
Alright the 6 after the true.
The 6 needs to be changed to 7-8 on /enterfd
Try this
pawn Код:
if (strcmp("/enterfd", cmdtext, true, 8) == 0)
//
if (strcmp("/exitfd", cmdtext, true, 8) == 0)
Just try that above and if it doesn't work then something is conflicting with this script..