Guys what is this? please help ped thingy at sting - 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)
+--- Thread: Guys what is this? please help ped thingy at sting (
/showthread.php?tid=439641)
Guys what is this? please help ped thingy at sting -
Jardzskiiz - 26.05.2013
warning 219: local variable "string" shadows a variable at a preceding level
warning 203: symbol is never used: "CivPedsFemale"
warning 203: symbol is never used: "CivPedsMale"
Код:
else if(!strcmp(params, "sex", true))
{
new playerb = SexBy[playerid];
new string[128]; //<<<this one
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;
}
Re: Guys what is this? please help ped thingy at sting -
GreTex - 26.05.2013
warning 203: symbol is never used: "CivPedsFemale"
warning 203: symbol is never used: "CivPedsMale"
means that you Have Defined CivPedsFemale And CivPedsMale
And you never Used Them
ON The Top of your script Search For
New CivPedsFemale;
New CivPedsmale;
And delete Them
Re: Guys what is this? please help ped thingy at sting -
Rock - 26.05.2013
Rename that "string" to something else because it's used somewhere else in your script.
Rename it to "string2" or whatever.
And don't forget to rename it everywhere it's used in that command. (format, SendNearbyMessage, ..., ...)