[HELP]GetPlayerHealth
#1

So I want that when a player says / menu1 receive life, not full life!
Код:
if (PlayerToPoint (2.0, playerid, 1215.5399, -906.5798,42.4896))
   if (strcmp ( "/ menu1" cmdtext, true, 10) == 0)
   (
    GivePlayerMoney (playerid, -100);
176 GetPlayerHealth (playerid, 30);
    SendClientMessage (playerid, 0xAA3333AA, "You bought a Coca-Cola, a sandwich and French fries.");
    return 1;
Код:
(176): error 035: argument type mismatch (argument 2)
And another thing,how to make when a player don't have $100 can not buy!
Reply


Messages In This Thread
[HELP]GetPlayerHealth - by lpstvv - 22.02.2010, 20:15
Re: [HELP]GetPlayerHealth - by Razvann - 22.02.2010, 20:25
Re: [HELP]GetPlayerHealth - by lpstvv - 22.02.2010, 20:26
Re: [HELP]GetPlayerHealth - by dclaw - 22.02.2010, 20:28
Re: [HELP]GetPlayerHealth - by lpstvv - 22.02.2010, 20:37
Re: [HELP]GetPlayerHealth - by dclaw - 22.02.2010, 20:40
Re: [HELP]GetPlayerHealth - by lpstvv - 22.02.2010, 20:50
Re: [HELP]GetPlayerHealth - by pyrodave - 22.02.2010, 20:55
Re: [HELP]GetPlayerHealth - by lpstvv - 22.02.2010, 20:58
Re: [HELP]GetPlayerHealth - by HerronInd - 24.02.2011, 08:19

Forum Jump:


Users browsing this thread: 1 Guest(s)