29.02.2012, 21:16
Hello, i have just returned to scripting after a break, but when i was makeing a command with dcmd, i suddenly ran into a problem i couldn't remember haveing before.
I made this command:
But i have this error:
On both the defining and the top line of the command, anyone know how to fix it?
Regards Naxix
I made this command:
Код:
dcmd(showfunds, 9, cmdtext);
Код:
dcmd_showfunds(playerid, params[]) { #pragma unused params new msg[128]; if(PlayerInfo[playerid][pAdmin] <= 2) return 0; else{ format(msg,sizeof(msg),"Bank1 have %d$",BankInfo[bBox1]); SendClientMessage(playerid,COLOR_GREEN,msg); format(msg,sizeof(msg),"Bank2 have %d$",BankInfo[bBox2]); SendClientMessage(playerid,COLOR_GREEN,msg); return 1; } }
Код:
error 017: undefined symbol "dcmd_showfunds"
Regards Naxix