14.12.2012, 16:51
Question 1:
Hey guys, I added a /heal command to LuxAdmin script, heres the code:
Then in compiler it says:
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:
Medics:
Taxi Drivers:
So here are the colors again:
•S.W.A.T = Aqua Color
• Medics = Pink Color
•Taxi Drivers = Dark Green
Please help me! Thanks
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;
}
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