fishing problem
#1

Код:
	if (strcmp(cmdtext, "/fish", true)==0)
	{
 	new vehid;
	vehid = GetVehicleModel(playerid);

	if(vehid == 446 || vehid == 472 || vehid == 473 || vehid == 493 || vehid == 595 || vehid == 484 || vehid == 430 || vehid == 453 || vehid == 452 || vehid == 454)
	{
  SendClientMessage(playerid,COLOR_LIGHTBLUE,"[FISHING]: You caught a fish and replenished some health.");
	new oldhealth;
	oldhealth = GetPlayerHealth(playerid);
	SetPlayerHealth(playerid,oldhealth + 20);
	}
	else
	{
	SendClientMessage(playerid,COLOR_RED,"[FISHING]: Your not in water! Fish don't come out of the concrete!");
	}
  return 1;
	}
i get following error:

Код:
C:\PROGRA~1\ROCKST~1\GAMEMO~1\paradise.pwn(1679) : warning 202: number of arguments does not match definition
Reply
#2

which line is 1679?
Reply
#3

oldhealth = GetPlayerHealth(playerid);
Reply
#4

pawn Код:
new Float:oldhealth;
GetPlayerHealth(playerid,oldhealth);
Reply
#5

1 more problem. even if they are in a boat, its says they're not.
Reply
#6

pawn Код:
vehid = GetVehicleModel(playerid);
Nice one..
Reply
#7

well i cant use vehicleid cause im in OnPlayerCommand
Reply
#8

Of course you can use it, you can use it by defining it.
Reply
#9

Quote:
Originally Posted by cj101
well i cant use vehicleid cause im in OnPlayerCommand
its called GetPlayerVehicleID
Reply
#10

i use that, and still get the problem.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)