1 warning
#1

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!");
Reply
#2

i think is the getplayerinterior make something like this

pawn Код:
if (strcmp("/buy", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -28.1007,-89.9386,1003.5469)
{
if(GetPlayerInterior(playerid) == 1)
{
Reply
#3

ok thanks alot man you helped me to fix it

thanks for your time and cooperation
Reply
#4

if you say to me thanks im glad to help you
Reply
#5

thanks to both of you
Reply
#6

Nope thats wrong. If a player is in an interior 1, not even close to the shop - the menu will still open.
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 4, -28.1007,-89.9386,1003.5469) && GetPlayerInterior(playerid) == 1) return SendClientMessage(playerid,COLOR_WHITE,"You are not in any 24/7 store!");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)