Why won't this work?(Solved) - 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: Why won't this work?(Solved) (
/showthread.php?tid=129151)
Why won't this work?(Solved) -
ScottCFR - 21.02.2010
Код:
if(strcmp("/givedrugs", cmdtext, true, 10) == 0)
{
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1);
SendClientMessage(playerid, COLOR_GREEN, "You sold drugs to %s",playerid);
}
It won't send to the person that bought the drugs
Re: Why won't this work? -
fsnameless - 21.02.2010
if(strcmp("/givedrugs", cmdtext, true) == 0)
{
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel (playerid)+1);
SendClientMessage(playerid, COLOR_GREEN, "You sold drugs to %s",playerid);
return 1;
}