Chatbot
#1

Deleted. New topic at the bottom
Reply
#2

SendPlayerMessageToAll does not exist, it should be SendClientMessageToAll, also
NOT with playerid.

https://sampwiki.blast.hk/wiki/SendClientMessageToAll
Reply
#3

Still 26 errors
Reply
#4

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
SendPlayerMessageToAll does not exist, it should be SendClientMessageToAll, also
NOT with playerid.

https://sampwiki.blast.hk/wiki/SendClientMessageToAll
SendPlayerMessageToAll does exist https://sampwiki.blast.hk/wiki/SendPlayerMessageToAll

On topic: You forgot a ) at the end of your strcmp code.
Reply
#5

Quote:
Originally Posted by Fj0rtizFredde
Посмотреть сообщение
Oh wow.. i missed that one :O
Reply
#6

Still many errors

Nvm, seems its gonna be a problem doing this.

Thanks anyway!
Reply
#7

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?
Reply
#8

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?
You have to script it (There is an include and a filterscript (I think) that you could use)
Reply
#9

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?
Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)