16.08.2010, 05:52
number of arguments does not match definition, i made a buy command i want the player to be at a certain point but also a interior which is 24/7 interior, i tried everything but i still get 1 warning
number of arguments does not match definition
this is the command
if (strcmp("/buy", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -28.1007,-89.9386,1003.5469) && GetPlayerInterior(playerid, 1) return SendClientMessage(playerid,COLOR_WHITE,"You are not in any 24/7 store!");
{
TogglePlayerControllable(playerid,0);
ShowMenuForPlayer(Store,playerid);
}
return 1;
}
and this is the buggy line
if(IsPlayerInRangeOfPoint(playerid, 4.0, -28.1007,-89.9386,1003.5469) && GetPlayerInterior(playerid, 1) return SendClientMessage(playerid,COLOR_WHITE,"You are not in any 24/7 store!");
number of arguments does not match definition
this is the command
if (strcmp("/buy", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -28.1007,-89.9386,1003.5469) && GetPlayerInterior(playerid, 1) return SendClientMessage(playerid,COLOR_WHITE,"You are not in any 24/7 store!");
{
TogglePlayerControllable(playerid,0);
ShowMenuForPlayer(Store,playerid);
}
return 1;
}
and this is the buggy line
if(IsPlayerInRangeOfPoint(playerid, 4.0, -28.1007,-89.9386,1003.5469) && GetPlayerInterior(playerid, 1) return SendClientMessage(playerid,COLOR_WHITE,"You are not in any 24/7 store!");