Help in dcmd, and GameTextForPlayer
#1

Question 1:

Hey guys, I added a /heal command to LuxAdmin script, heres the code:

pawn Код:
dcmd_heal(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 1)
    {
    SetPlayerHealth(playerid, 100);
    SetGameTextForPlayer(playerid, "You have been healed", 4, 3000);
    }
    return 1;
    }
Then in compiler it says:

pawn Код:
C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\GTASAS~1\FILTER~1\LuxAdmin.pwn(12431) : warning 203: symbol is never used: "dcmd_heal"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.

How do I fix it?



Question 2:


I added Game Text for when someone switches class:

Some of them are fine, but I need aqua color for S.W.A.T, pink color for Medics, and dark green for taxi drivers:

Here are the codes for them:

S.W.A.T:

pawn Код:
case 11:
        {
            GameTextForPlayer(playerid, "S.W.A.T", 3000, 3);
        }

Medics:

pawn Код:
case 13, 14:
        {
            GameTextForPlayer(playerid, "Medics", 3000, 3);
        }

Taxi Drivers:

pawn Код:
case 15, 16:
        {
            GameTextForPlayer(playerid, "Taxi Drivers", 3000, 3);
        }

So here are the colors again:


•S.W.A.T = Aqua Color

• Medics = Pink Color

•Taxi Drivers = Dark Green



Please help me! Thanks
Reply


Messages In This Thread
Help in dcmd, and GameTextForPlayer - by Goldino - 14.12.2012, 16:51
Re: Help in dcmd, and GameTextForPlayer - by Lz - 14.12.2012, 16:54
Re: Help in dcmd, and GameTextForPlayer - by Goldino - 14.12.2012, 16:55
Re: Help in dcmd, and GameTextForPlayer - by Goldino - 14.12.2012, 17:03
Re: Help in dcmd, and GameTextForPlayer - by Lynet - 14.12.2012, 18:20
Re: Help in dcmd, and GameTextForPlayer - by Lz - 14.12.2012, 18:25
Re: Help in dcmd, and GameTextForPlayer - by Patrick - 14.12.2012, 20:55
Re: Help in dcmd, and GameTextForPlayer - by Mean - 14.12.2012, 23:35
Re: Help in dcmd, and GameTextForPlayer - by Threshold - 15.12.2012, 01:44

Forum Jump:


Users browsing this thread: 2 Guest(s)