29.09.2011, 13:37
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/buyparrot", cmdtext, true, 10) == 0)
{
if GetPlayerMoney(playerid) >=20000*then
SendClientMessage(playerid, 0xFF0000FF,"You dont have enough money!");
else
GivePlayerMoney(playerid,-20000);
SetPlayerAttachedObject(playerid,1,19078,1,0.32072 2,-0.067912,-0.165151,0.000000,0.000000,0.000000,1.000000,1.000 000,1.000000);
}
return 1;
}
if (strcmp("/sellparrot", cmdtext, true, 10) == 0)
{
GivePlayerMoney(playerid,20000);
return 1;
}
ERRORS:
C:\Documents and Settings\scry\Desktop\Truck srv\filterscripts\parrot.pwn(46) : error 010: invalid function or declaration
C:\Documents and Settings\scry\Desktop\Truck srv\filterscripts\parrot.pwn(49) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
{
if (strcmp("/buyparrot", cmdtext, true, 10) == 0)
{
if GetPlayerMoney(playerid) >=20000*then
SendClientMessage(playerid, 0xFF0000FF,"You dont have enough money!");
else
GivePlayerMoney(playerid,-20000);
SetPlayerAttachedObject(playerid,1,19078,1,0.32072 2,-0.067912,-0.165151,0.000000,0.000000,0.000000,1.000000,1.000 000,1.000000);
}
return 1;
}
if (strcmp("/sellparrot", cmdtext, true, 10) == 0)
{
GivePlayerMoney(playerid,20000);
return 1;
}
ERRORS:
C:\Documents and Settings\scry\Desktop\Truck srv\filterscripts\parrot.pwn(46) : error 010: invalid function or declaration
C:\Documents and Settings\scry\Desktop\Truck srv\filterscripts\parrot.pwn(49) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.

