Some Problems.
#1

Quote:

1 - warning 219: local variable "string" shadows a variable at a preceding level
2 -symbol is never used: "CivPedsFemale"
symbol is never used: "CivPedsMale"

Those are the errors and I dunno how to fix them lol, so I need some help..

pawn Код:
else if(!strcmp(params, "sex", true))
    {
        new playerb = SexBy[playerid];
        new string[128];
        if(playerb == -1) return SendClientMessage(playerid, COLOR_GREY, "Nobody has offered you sex.");
        SexBy[playerid] = -1;
        SexRequest[playerb] = 0;
        Sex[playerid] = 1;
        Sex[playerb] = 1;
        format(string, sizeof(string), "* %s has engaged in sexual intercourse with %s", RPN(playerid), RPN(playerb));
        SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now having sex.");
        SendClientMessage(playerb, COLOR_LIGHTBLUE, "You are now having sex. (/sex to end the sex)");
    }
    return 1;
}
First one ^^

--------------------------------------------------------------------------------------------------------------

The "CivPedsFemale" and "CivPedsMale" is not even in the script..
Example:
Script cointains: 50,000 lines.
Those are located at 50,010 etc..
Reply
#2

You've defined the same variable twice, and you've defined CivPedsFemale without actually using it, and same goes to CivPedsMale.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)