Help with these warnings?
#1

Код:
CMD:dildo(playerid, params[])
{
39:  if(IsPlayerInRangeOfPoint(playerid, 3.0, 281,2421.8447,-1220.6746,25.4680))
  {
41:  CreatePickup(1239, 2, 281,2421.8447,-1220.6746,25.4680, 0);
  GetPlayerMoney(playerid);
  if(GetPlayerMoney(playerid) == 0) return SendClientMessage(playerid, 0xCD3333, "mama nqma pari");
  GivePlayerMoney(playerid, -69);
  GivePlayerWeapon(playerid, 10, 1);
  SendClientMessage(playerid, 0xCD3333, "ti si vze dildo qj go");
  }
  return 1;
}
D:\igri\GTA San Andreas\filterscripts\Untitled.pwn(39) : warning 202: number of arguments does not match definition
D:\igri\GTA San Andreas\filterscripts\Untitled.pwn(41) : warning 213: tag mismatch
D:\igri\GTA San Andreas\filterscripts\Untitled.pwn(41) : warning 202: number of arguments does not match definition
Reply
#2

Come on, English isn't that difficult! Read the error again.

number of arguments does not match definition

Number of arguments (or parameters) is not correct. In other words, you have too many or too few parameters. Check the corresponding functions IsPlayerInRangeOfPoint and CreatePickup to check what parameters/arguments the function asks from you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)