17.03.2011, 07:32
I have Maded a /Medkit Command Which Get's 5000$ And Set Player's Health To 100 So this works but i want when the player health is 100 it says Your Health is Already Full/100.0. Well I've Tryed To Make this
But This Error
pawn Код:
if (strcmp("/MedKit", cmdtext, true, 8) == 0)
{
if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFF0000AA, " You dont have enough money!");
if(GetPlayerHealth(playerid) < 100) return SendClientMessage(playerid, 0xFF0000AA, "Your Health Is Already Full!");
{
GivePlayerMoney(playerid, -5000);
SetPlayerHealth(playerid,100);
}
return 1;
}
pawn Код:
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(1737) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.