04.02.2011, 16:19
i get an empty statement error/warning when i have this
Quote:
dcmd_sweaty(playerid, params[]) { if(PlayerInfo[playerid][pJob] != 7) return SendClientMessage(playerid,COLOR_SYSTEM ,"You are not a prostitute"); new id, string[200],badgirl[200]; if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOUR_SYSTEM, "Usage: /sweaty (nick/id)"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOUR_SYSTEM, "Invalid player!"); if(id == playerid) return SendClientMessage(playerid, COLOUR_SYSTEM, "You cannot sweaty yourself"); if(PlayerInfo[playerid][pJob] == 7) { new Float ![]() GetPlayerPos(id,Float ![]() if(IsPlayerInRangeOfPoint(playerid,6,x,y,z)); { switch(random(2)) { case 0: { format(string, sizeof(string), "%s makes a smooth move on %s the people around her hoping to get her way!", PlayerName(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); format(badgirl, sizeof(string), "%s begins to sweat and feels nervous, as the prostitute makes her move, he then is weakened by the sexyness of the prostitute",id); ProxDetector(30.0, playerid, badgirl, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); } case 1: { format(string, sizeof(string), "%s begins to make a smooth move on the people around her hoping to get her way!", PlayerName(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); format(badgirl, sizeof(string), "%s resists the will of the prostitute",id); ProxDetector(30.0, playerid, badgirl, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); } } } } return 1; } |