Need help "SendClientMessage" script
#1

Hey im a VERY new scripter, actually i started today, and when i write:

public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,"Welcome to LRC Role-Play server");
return 1;
}

its says: error 035: argument type mismatch (argument 2)

To THIS line:
SendClientMessage(playerid,"Welcome to LRC Role-Play server");

what shall i do plz help!
Reply
#2

Actually, SendClientMessage structure is:

pawn Код:
SendClientMessage( playerid, COLOR, MSG[] );
So, try that:
pawn Код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0xFFFFFFFF,"Welcome to LRC Role-Play server");
//0xFFFFFFFF is a hexadecimal code, that means color white
return 1;
}
Reply
#3

You forgot to define your color.

You can see here: https://sampwiki.blast.hk/wiki/SendClientMessage
Reply
#4

Very much thx you! but if i dont want it to be White, where do i tehn find the other color codes ?
Reply
#5

Click here
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)