02.11.2009, 17:12
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[256]; if(strcmp(cmd, "/mycommand", true)) { if(IsPlayerInArea(playerid, -70.06725, 1646.58, 432.0814, 2125.373)) { GameTextForPlayer(playerid, "Entering Army Territory", 1, 1); } return 1; } return 0; } IsPlayerInArea(playerid, Float:data[4]) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); if(X >= data[0] && X <= data[2] && Y >= data[1] && Y <= data[3]) { return 1; } return 0; }
Код:
(81) : error 035: argument type mismatch (argument 2)
Код:
if(IsPlayerInArea(playerid, -70.06725, 1646.58, 432.0814, 2125.373))