need help with warnings
#1

i got some warnings with compiling can someone help?

Код:
C:\Users\kalvi\Desktop\sa-mp\gamemodes\PILOTGAMEMODE.pwn(183) : warning 213: tag mismatch
C:\Users\kalvi\Desktop\sa-mp\gamemodes\PILOTGAMEMODE.pwn(183) : warning 202: number of arguments does not match definition
C:\Users\kalvi\Desktop\sa-mp\gamemodes\PILOTGAMEMODE.pwn(568) : warning 209: function "OnPlayerPickUpPickup" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Reply
#2

at the end of you OnPlayerPickUpPickup

you need return 1;
Reply
#3

still warning

Код:
C:\Users\kalvi\Desktop\sa-mp\gamemodes\PILOTGAMEMODE.pwn(680) : warning 209: function "OnPlayerPickUpPickup" should return a value
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
code
Код:
public OnPlayerPickUpPickup(playerid, pickupid)

if(IsPlayerInRangeOfPoint(playerid, 15.15,2112.757568,-2433.868652,13.546875))
{
SendClientMessage(playerid,0xFFFFFFFF,"Your vehicle Has Been Repaired");
RepairVehicle(GetPlayerVehicleID(playerid));

return 1;
}
Reply
#4

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{

if(IsPlayerInRangeOfPoint(playerid, 15.15,2112.757568,-2433.868652,13.546875))
{
  SendClientMessage(playerid,0xFFFFFFFF,"Your vehicle Has Been Repaired");
  RepairVehicle(GetPlayerVehicleID(playerid));
}

return 1;

}
Reply
#5

thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)