23.12.2013, 09:00
Quote:
1- You didn't include zcmd
2- You have "1" under your includes 3- You didn't close the open curly bracket under else 4- You also didn't close the open curly bracket under main() EDIT: 5- SendClientMessage(playerid, 0xFF0000AA, "Player Not Found");dC remove that "dC" |
Code:
// Spy Message Giver V1.0-Tony Ronaldo // // Command SM Or spymessage [id] to use it // // Good For FBI And Hitman // #include <a_samp> #include <sscanf2> #include <zcmd> #if defined FILTERSCRIPT public OnFilterScriptInit() { return 1; } public OnFilterScriptExit() { return 1; } CMD:sm(playerid, params[]) { new id; if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/Spymessage <playerid>\""); else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player Not Found"); SendClientMessage (id, 0xB8860BAA, ""); SendClientMessage (playerid, 0xB8860BAA, "Spy Message Sent.If You Have Found This Command Leave It Or Else You Will Be Banned For Using And Abusing FBI And Hitman Commands."); SendClientMessage (id, 0xAA3333AA,"A Spy Has Sent You A Message.It Seems To Be Your In Danger!" ); SendClientMessage (playerid, 0xAA3333AA, "You Have To Rp Spy Message!!!.If You Do Not You Will Get 30 Minutes Jail."); else { //This bit needs to be finished. } } #else main() { } #endif