Chatbot - 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: Chatbot (
/showthread.php?tid=260607)
Chatbot - ColdIce - 09.06.2011
Deleted. New topic at the bottom
Re: Chatbot -
Mike Garber - 09.06.2011
SendPlayerMessageToAll does not exist, it should be SendClientMessageToAll, also
NOT with playerid.
https://sampwiki.blast.hk/wiki/SendClientMessageToAll
Re: Chatbot - ColdIce - 09.06.2011
Still 26 errors
Re: Chatbot -
Fj0rtizFredde - 09.06.2011
Quote:
Originally Posted by Mike Garber
|
SendPlayerMessageToAll does exist
https://sampwiki.blast.hk/wiki/SendPlayerMessageToAll
On topic: You forgot a ) at the end of your strcmp code.
Re: Chatbot -
Mike Garber - 09.06.2011
Quote:
Originally Posted by Fj0rtizFredde
|
Oh wow.. i missed that one :O
Re: Chatbot - ColdIce - 09.06.2011
Still many errors
Nvm, seems its gonna be a problem doing this.
Thanks anyway!
Re: Chatbot - ColdIce - 09.06.2011
NEW TOPIC! Dont wanna make a new one so soon
When noone is in a certain car, I cannot destroy it, not even blow the tires. Since I've seen it on other servers it must be possible. How?
Re: Chatbot -
Fj0rtizFredde - 09.06.2011
Quote:
Originally Posted by ColdIce
NEW TOPIC! Dont wanna make a new one so soon
When noone is in a certain car, I cannot destroy it, not even blow the tires. Since I've seen it on other servers it must be possible. How? ![confused](images/smilies/confused.gif)
|
You have to script it (There is an include and a filterscript (I think) that you could use)
Re: Chatbot - ColdIce - 10.06.2011
pawn Код:
if(strcmp(cmdtext, "/paint", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You must be in a vehicle!");
ChangeVehicleColor(GetPlayerVehicleID(playerid), random(255), random(255));
SendClientMessage(playerid, 0x6AF7E1FF,"Hope you like the new colour xD");
return 1;
}
return 0;
}
pawn Код:
warning 225: unreachable code
Is the callback wrong?
Re: Chatbot -
DRIFT_HUNTER - 10.06.2011
pawn Код:
if(strcmp(cmdtext, "/paint", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You must be in a vehicle!");
ChangeVehicleColor(GetPlayerVehicleID(playerid), random(255), random(255));
SendClientMessage(playerid, 0x6AF7E1FF,"Hope you like the new colour xD");
return 1;
}