05.12.2016, 16:45
Hello all i have made acmd for block pm but i gos some errors maybe can anyone help me
i don't know how to found the missing bracket
here's command
i don't know how to found the missing bracket
Код:
D:\price\matrix\Gamemodes\DNTDM1.pwn(47826) : warning 209: function "cmd_dnd" should return a value D:\price\matrix\Gamemodes\DNTDM1.pwn(47826) : error 010: invalid function or declaration D:\price\matrix\Gamemodes\DNTDM1.pwn(47827) : error 010: invalid function or declaration D:\price\matrix\Gamemodes\DNTDM1.pwn(47829) : error 010: invalid function or declaration D:\price\matrix\Gamemodes\DNTDM1.pwn(47830) : error 010: invalid function or declaration D:\price\matrix\Gamemodes\DNTDM1.pwn(47832) : error 010: invalid function or declaration D:\price\matrix\Gamemodes\DNTDM1.pwn(47833) : error 010: invalid function or declaration D:\price\matrix\Gamemodes\DNTDM1.pwn(47835) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors.
Код:
CMD:dnd(playerid,params[]) { #pragma unused params #pragma unused params if(PlayerInfo[playerid][Level] >= 6) { if(PlayerInfo[playerid][Block] == 1) return SendClientMessage(playerid, red, "ERROR: You already Blocking your PM's!"); PlayerInfo[playerid][Block] = 1; return SendClientMessage(playerid, green, "| - Block PM activated, players cannot PM you. - |"); } } else { if(PlayerInfo[playerid][Level] >= 6) { if(PlayerInfo[playerid][Block] != 1) return SendClientMessage(playerid, red, "ERROR: You are not Blocking your PM's!"); PlayerInfo[playerid][Block] = 0; return SendClientMessage(playerid, green, "| - You can receive PM's from players now. - |"); } else return SendClientMessage(playerid, red, "ERROR: You are not a high enough level to use this command"); }