Who to solve this error?? +rep for helper -
Danyal - 29.12.2011
Error:
pawn Код:
function "zcmd_OnPlayerCommandText" is not implemented
Code where the error is:
pawn Код:
TRANFER_REC:OnPlayerCommandText( playerid, "/bank");
Bank Command In Zcmd
pawn Код:
CMD:bank(playerid,params[])
{
INI_ParseFile( ReturnBankingName( playerid ), "ParseReceived", .bExtra = true, .extra = playerid );
if ( fexist( ReturnBankingName( playerid ) ) && !PlayerInfo[ playerid ][ P_Logged ] )
ShowPlayerDialog( playerid, BANK_LOGIN, DIALOG_STYLE_INPUT, ""COL_ALL"Banking System: {FFFFFF}Login", ""COL_GREY"Please insert the password of your Bank Account", "Login", "Exit");
else if ( !fexist( ReturnBankingName( playerid ) ) )
ShowPlayerDialog( playerid, BANK_CREATE, DIALOG_STYLE_MSGBOX, ""COL_ALL"Banking System", "{FFFFFF}You don't have a "COL_ALL"Banking Account{FFFFFF}\nWould you like to create?", "Yes", "Exit");
else if ( PlayerInfo[ playerid ][ P_Logged ] && !GetPVarInt( playerid, "MoneyReceived" ) )
ShowPlayerDialog( playerid, BANK, DIALOG_STYLE_LIST, ""COL_ALL"Banking System", "{FFF1EB}Deposit\n\
{FFF1EB}Withdraw\n\
{FFF1EB}Transfer\n\
{FFF1EB}Account Information\n\
{FFF1EB}Banking System Information\n\
{FFF1EB}Cancel account\n\
{D9997E}Exit", "Select", "");
else if ( PlayerInfo[ playerid ][ P_Logged ] == 1 && GetPVarInt( playerid, "MoneyReceived" ) == 1 )
ShowPlayerDialog( playerid, BANK, DIALOG_STYLE_LIST, ""COL_ALL"Banking System", "{FFF1EB}Deposit\n\
{FFF1EB}Withdraw\n\
{FFF1EB}Transfer\n\
{FFF1EB}Account Information\n\
{FFF1EB}Banking System Information\n\
{FFF1EB}Cancel account\n\
{9CFFC2}Receive Transfer\n\
{D9997E}Exit", "Select", "");
return 1;
}
Title says all
Re: Who to solve this error?? +rep for helper -
MadeMan - 29.12.2011
Show
Re: Who to solve this error?? +rep for helper -
Danyal - 29.12.2011
pawn Код:
#define TRANFER_REC BANK + 20
here it is
Re: Who to solve this error?? +rep for helper -
James Coral - 29.12.2011
lol ZCMD dont go ONPLAYERCOMMAND...(where is /mycommand)
its going end of the script!
Re: Who to solve this error?? +rep for helper -
MadeMan - 29.12.2011
Where is it?
Show the code around the error line.
Re: Who to solve this error?? +rep for helper -
Danyal - 29.12.2011
pawn Код:
switch( dialogid )
{
case BANK_CREATE2,
BANK_LOGGED,
BANK_INFO,
BANK_WITH_DONE,
BANK_DEPO_DONE,
TRANFER_REC:OnPlayerCommandText( playerid, "/bank"); //=========== here is the line of error
case BANK_TRANSFER_6:
{
if ( !response ) return DeletePVar( playerid, "tAmount" ),
DeletePVar( playerid, "tPlayer" ),
DeletePVar( playerid, "tPlayer2" ),
ShowPlayerDialog( playerid, BANK_TRANSFER, DIALOG_STYLE_LIST, ""COL_ALL"Transfer Money Method", "{D6D4D4}Direct Transfer( {BFDEC1}Active player {D6D4D4})\n{D6D4D4}Account transfer( {DEBFBF}Offline transfer {D6D4D4})\n{BFDEDE}More information about methods", "Select", "Back" );
Re: Who to solve this error?? +rep for helper -
FarSe. - 29.12.2011
cmd_bank(playerid,"\1"); ?