03.12.2010, 19:40
Still got ERROR's
ERROR:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[], incheckpoint)
{
if( incheckpoint == ArmourCP);
{
if (strcmp("/buyarmour", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) <= 5000)
{
SendClientMessage(playerid, COLOR_GREEN, "Armour Bought For 5000$");
GivePlayerMoney(playerid, -5000);
SetPlayerArmour(playerid, 100);
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "You Dont Have 5000$");
}
return 1;
}
}
pawn Код:
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\BuyThings.pwn(15) : error 025: function heading differs from prototype
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\BuyThings.pwn(17) : error 036: empty statement
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\BuyThings.pwn(31) : warning 217: loose indentation
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\BuyThings.pwn(34) : error 030: compound statement not closed at the end of file (started at line 17)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.