prostitute job
#1

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,Float:y,Float:z;
GetPlayerPos(id,Float,Float:y,Float:z);
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;
}

Reply
#2

post your error line and use [/pawn][pawn]
Reply
#3

infernalRP.pwn(9003) : error 036: empty statement
Reply
#4

omg i only need the error line
Reply
#5

if(IsPlayerInRangeOfPoint(playerid,6,x,y,z));
Reply
#6

fix if(IsPlayerInRangeOfPoint(playerid,6,x,y,z))
Reply
#7

Remove the semicolon:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,6,x,y,z))
EDIT: Got beaten by few seconds D:
Reply
#8

oh wow im such an ideot
Reply
#9

closed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)