SA-MP Forums Archive
prostitute job - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: prostitute job (/showthread.php?tid=220937)



prostitute job - farris - 04.02.2011

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;
}




Re: prostitute job - Steven Paul - 04.02.2011

post your error line and use [/pawn][pawn]


Re: prostitute job - farris - 04.02.2011

infernalRP.pwn(9003) : error 036: empty statement


Re: prostitute job - Steven Paul - 04.02.2011

omg i only need the error line


Re: prostitute job - farris - 04.02.2011

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


Re: prostitute job - Steven Paul - 04.02.2011

fix if(IsPlayerInRangeOfPoint(playerid,6,x,y,z))


Re: prostitute job - Mikkel_Pedersen - 04.02.2011

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


Re: prostitute job - farris - 04.02.2011

oh wow im such an ideot


Re: prostitute job - showarn - 04.02.2011

closed