warning 202: number of arguments does not match definition (in line 190)
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/adminroof", true)) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 1847.7333,-1761.9608,13.5469)) { SetPlayerPos(playerid, 1889.0286,-1782.9777,25.7911);//Naar boven SetPlayerInterior(playerid, 0); } } if(!strcmp(cmdtext, "/admindown", true)) ****LINE 190 IS HERE, PEOPLE, THE ERROR IS HERE IT SAYS**** { if(IsPlayerInRangeOfPoint(playerid, 3.0, 0,1889.0286,-1782.9777,25.7911)) { SetPlayerPos(playerid, 1847.7333,-1761.9608,13.5469);//Naar beneden SetPlayerInterior(playerid, 0); } } return 1; }
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/adminroof", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1847.7333,-1761.9608,13.5469))
{
SetPlayerPos(playerid, 1889.0286,-1782.9777,25.7911);//Naar boven
SetPlayerInterior(playerid, 0);
}
}
if(strcmp(cmdtext, "/admindown", true) == 10 )
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 0,1889.0286,-1782.9777,25.7911))
{
SetPlayerPos(playerid, 1847.7333,-1761.9608,13.5469);//Naar beneden
SetPlayerInterior(playerid, 0);
}
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1889.0286,-1782.9777,25.7911))
Another problem - It says: SERVER: UNKNOWN COMMAND
If I use /adminroof OR /admindown |
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/adminroof", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1847.7333,-1761.9608,13.5469))
{
SetPlayerPos(playerid, 1889.0286,-1782.9777,25.7911);//Naar boven
SetPlayerInterior(playerid, 0);
return 1;
}
}
if(strcmp(cmdtext, "/admindown", true) == 10 )
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 0,1889.0286,-1782.9777,25.7911))
{
SetPlayerPos(playerid, 1847.7333,-1761.9608,13.5469);//Naar beneden
SetPlayerInterior(playerid, 0);
return 1;
}
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/adminroof", true)) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 1847.7333,-1761.9608,13.5469)) { SetPlayerPos(playerid, 1889.0286,-1782.9777,25.7911);//Naar boven SetPlayerInterior(playerid, 0); return 1; } } if(strcmp(cmdtext, "/admindown", true)) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 1889.0286,-1782.9777,25.7911)) { SetPlayerPos(playerid, 1847.7333,-1761.9608,13.5469);//Naar beneden SetPlayerInterior(playerid, 0); return 1; } } return 1; }
Try This
pawn Код:
|
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/adminroof", true)) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 1847.7333,-1761.9608,13.5469)) { SetPlayerPos(playerid, 1889.0286,-1782.9777,25.7911);//Naar boven SetPlayerInterior(playerid, 0); return 1; } } if(strcmp(cmdtext, "/admindown", true)) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 1889.0286,-1782.9777,25.7911)) { SetPlayerPos(playerid, 1847.7333,-1761.9608,13.5469);//Naar beneden SetPlayerInterior(playerid, 0); return 1; } } return 1; } EDIT: @Sam1: Great minds think alike haha. Beat me to it I'll admit though.. Might want to correct the 2nd IsPlayerInRange line, it still has the misplaced parameter discussed earlier in your code. |