Help in CMD's
#3

Did that :

Quote:

if (strcmp("/Buyhealth", cmdtext, true, 10) == 0)
{
new money;
GetPlayerMoney(playerid, money);
if(money < 10000) return SendClientMessage(playerid, -1, "You can't afford this!");
SetPlayerHealth(playerid, 100.0);
GivePlayerMoney(playerid, -10000);
return 1;
}
if (strcmp("/BuyArmor", cmdtext, true, 9) == 0)
{
new money;
GetPlayerMoney(playerid, money);
if(money < 10000) return SendClientMessage(playerid, -1, "You can't afford this!");
GetPlayerArmour(playerid, armor);
SetPlayerArmour(playerid, 100.0);
GivePlayerMoney(playerid, -10000);
return 1;
}
return 0;
}

And that happened :

Quote:

E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(102) : warning 217: loose indentation
E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(105) : warning 202: number of arguments does not match definition
E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(111) : warning 217: loose indentation
E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(114) : warning 202: number of arguments does not match definition
E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(116) : error 017: undefined symbol "armor"
E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(121) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply


Messages In This Thread
Help in CMD's - by Mr.Black - 29.06.2011, 07:13
Re: Help in CMD's - by PrawkC - 29.06.2011, 07:22
Re: Help in CMD's - by Mr.Black - 29.06.2011, 07:29
Re: Help in CMD's - by HyperZ - 29.06.2011, 07:39
Re: Help in CMD's - by Mr.Black - 29.06.2011, 07:41
Re: Help in CMD's - by HyperZ - 29.06.2011, 08:15

Forum Jump:


Users browsing this thread: 2 Guest(s)