need help with warnings - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help with warnings (
/showthread.php?tid=118787)
need help with warnings -
rs2fun111 - 05.01.2010
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.
Re: need help with warnings -
fsnameless - 05.01.2010
at the end of you OnPlayerPickUpPickup
you need return 1;
Re: need help with warnings -
rs2fun111 - 05.01.2010
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;
}
Re: need help with warnings -
Calon - 05.01.2010
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;
}
Re: need help with warnings -
rs2fun111 - 05.01.2010
thank you