29.06.2011, 07:29
Did that :
And that happened :
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; } |
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. |