Lil problem - 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: Lil problem (
/showthread.php?tid=277463)
Lil problem -
Tanush123 - 18.08.2011
i get
pawn Код:
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\Vercetti.pwn(747) : warning 202: number of arguments does not match definition
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\Vercetti.pwn(748) : warning 202: number of arguments does not match definition
D:\Users\Tanush\Desktop\SA-MP Server Stunt\gamemodes\Vercetti.pwn(756) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
in compile
Line 747:
pawn Код:
if(GetPlayerHealth(playerid) == 100) return SendClientMessage(playerid,red,"ERROR: You are too full to eat snacks.");
Line 748:
pawn Код:
SetPlayerHealth(playerid,GetPlayerHealth(playerid)+20);
Line 756:
pawn Код:
if(GetPlayerHealth(playerid) == 100) return SendClientMessage(playerid,red,"ERROR: You are too full to drink sprunk.");
Re: Lil problem -
Cyanide - 18.08.2011
The function
GetPlayerHealth doesn't return a value. Check the SA:MP Wikipedia example
here.
Re: Lil problem -
Tanush123 - 18.08.2011
thank you