Compiling Problems - 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)
+--- Thread: Compiling Problems (
/showthread.php?tid=448279)
Compiling Problems -
fahadtariq73 - 03.07.2013
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;
Re: Compiling Problems -
Matej794 - 03.07.2013
And where is the line 94? Paste it here.
Re: Compiling Problems -
Deathstalker - 03.07.2013
You forgot to add a color to the SendClientMessage function.
Re: Compiling Problems -
Basssiiie - 03.07.2013
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.
Re: Compiling Problems -
Matej794 - 03.07.2013
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.
Re: Compiling Problems -
hassantariq73 - 03.07.2013
93 SetPlayerPos(playerid, 1454.9015,1347.4325,10);
94 SendClientMessage(playerid, "TELEPORTED TO LAS VENTURAS!");
95 return 1;
Re: Compiling Problems -
Red_Dragon. - 03.07.2013
Yeah we know the line now, but do what they said. Add the colour parameter. SendClientMessage function has three parameters.