PDA

View Full Version : Mini Help


Zorono
15/04/2016, 12:27 PM
<removed>

oMa37
15/04/2016, 12:31 PM
Show us line 19, 20, 28

yugecin
15/04/2016, 12:32 PM
stock TeleportPlayer(playerid,x[],y[],z[],gmtext[],msgtext[],teletext[])
Should be
stock TeleportPlayer(playerid,Float:x,Float:y,Float:z,gm text[],msgtext[],teletext[])

Also, check http://wiki.sa-mp.com/wiki/GameTextForPlayer, you forgot the style and time parameter.

Zorono
15/04/2016, 12:34 PM
Show us line 19, 20, 28

SetPlayerPos(playerid,x,y,z);

oMa37
15/04/2016, 12:34 PM
stock TeleportPlayer(playerid,x[],y[],z[],gmtext[],msgtext[],teletext[])
Should be
stock TeleportPlayer(playerid,Float:x,Float:y,Float:z,gm text[],msgtext[],teletext[])

Also you have used GamTextForPlayer(playerid, gmtext);
the function GameTextForPlayer uses (playerid, const string[], time, style)
So it must be

GamTextForPlayer(playerid, gmtext, 5, 2); // or change it to whatever you want


EDIT:

stock TeleportPlayer(playerid,Float:x,Float:y,Float:z,gm text[],msgtext[],teletext[])
{
new doroname[MAX_PLAYER_NAME],string[128];
SetPlayerPos(playerid,x,y,z);
GameTextForPlayer(playerid,gmtext, 5, 2);
GetPlayerName(playerid, doroname, sizeof(doroname));
format(string, sizeof(string), "[TELE]:%s (ID:%d) has just Teleported To %s {FF6600}/%s", doroname, playerid, msgtext, teletext);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
return 1;
}

CMD:sfa(playerid,params[])
{
TeleportPlayer(playerid,-1657.5400,-164.9457,14.1484,"San Fierro Airport","San Fierro Airport","sfa");
return 1;
}


This must work, works for me.

Zorono
15/04/2016, 12:38 PM
<removed>