dcmd_rights(playerid, params[]); { if(IsPlayerCop(playerid)==1) // or whatever function you got on the police.. { if(sscanf(params, "u", id)) return SendClientMessage(playerid, InsertColorCode, "Usage: /rights (playerid)"); SendClientMessage(id, COLOR, "Your rights: bla bla bla bla"); SendClientMessage(id, COLOR, " rights continue bla bla bla"); } else { SendClientMessage(playerid, COLOR, "ERROR: You are not an police officer."); } return 1; }
Originally Posted by KayaQue
Код:
dcmd_rights(playerid, params[]); { if(IsPlayerCop(playerid)==1) // or whatever function you got on the police.. { if(sscanf(params, "u", id)) return SendClientMessage(playerid, InsertColorCode, "Usage: /rights (playerid)"); SendClientMessage(id, COLOR, "Your rights: bla bla bla bla"); SendClientMessage(id, COLOR, " rights continue bla bla bla"); } else { SendClientMessage(playerid, COLOR, "ERROR: You are not an police officer."); } return 1; } |
C:\Users\Niels\Desktop\Scipt1\gamemodes\Im2sz.pwn(8498) : error 004: function "dcmd_rights" is not implemented C:\Users\Niels\Desktop\Scipt1\gamemodes\Im2sz.pwn(26340) : error 055: start of function body without function header C:\Users\Niels\Desktop\Scipt1\gamemodes\Im2sz.pwn(26341) : error 010: invalid function or declaration C:\Users\Niels\Desktop\Scipt1\gamemodes\Im2sz.pwn(26343) : error 010: invalid function or declaration C:\Users\Niels\Desktop\Scipt1\gamemodes\Im2sz.pwn(26347) : error 010: invalid function or declaration C:\Users\Niels\Desktop\Scipt1\gamemodes\Im2sz.pwn(26351) : error 010: invalid function or declaration C:\Users\Niels\Desktop\Scipt1\gamemodes\Im2sz.pwn(22477) : warning 204: symbol is assigned a value that is never used: "roadblocktimer" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1