Compiling Problems
#1

I get this error

Код:
GTA San Andreas User Files\SAMP\filterscripts\teleport.pwn(94) : error 035: argument type mismatch (argument 2)


For this :

Код:
Код:
SetPlayerPos(playerid, 1454.9015,1347.4325,10);
		SendClientMessage(playerid, "TELEPORTED TO LAS VENTURAS!");
		return 1;
Reply
#2

And where is the line 94? Paste it here.
Reply
#3

You forgot to add a color to the SendClientMessage function.
Reply
#4

Quote:
Originally Posted by Deathstalker
Посмотреть сообщение
You forgot to add a color to the SendClientMessage function.
What he says. SendClientMessage requires three parameters: a player, a color and a message.
Reply
#5

Quote:
Originally Posted by Deathstalker
Посмотреть сообщение
You forgot to add a color to the SendClientMessage function.
Yeah.

Quote:

SendClientMessage(playerid, 0xFF0000FF, "TELEPORTED TO LAS VENTURAS!");

That's just an example, you can put any color you want to.
Reply
#6

93 SetPlayerPos(playerid, 1454.9015,1347.4325,10);
94 SendClientMessage(playerid, "TELEPORTED TO LAS VENTURAS!");
95 return 1;
Reply
#7

Yeah we know the line now, but do what they said. Add the colour parameter. SendClientMessage function has three parameters.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)