Mini Help
#1

<removed>
Reply
#2

Show us line 19, 20, 28
Reply
#3

Код:
stock TeleportPlayer(playerid,x[],y[],z[],gmtext[],msgtext[],teletext[])
Should be
Код:
stock TeleportPlayer(playerid,Float:x,Float:y,Float:z,gmtext[],msgtext[],teletext[])
Also, check https://sampwiki.blast.hk/wiki/GameTextForPlayer, you forgot the style and time parameter.
Reply
#4

Quote:
Originally Posted by oMa37
Посмотреть сообщение
Show us line 19, 20, 28
SetPlayerPos(playerid,x,y,z);
Reply
#5

Quote:
Originally Posted by yugecin
Посмотреть сообщение
Код:
stock TeleportPlayer(playerid,x[],y[],z[],gmtext[],msgtext[],teletext[])
Should be
Код:
stock TeleportPlayer(playerid,Float:x,Float:y,Float:z,gmtext[],msgtext[],teletext[])
Also you have used GamTextForPlayer(playerid, gmtext);
the function GameTextForPlayer uses (playerid, const string[], time, style)
So it must be
PHP код:
GamTextForPlayer(playeridgmtext52); // or change it to whatever you want 
EDIT:
PHP код:
stock TeleportPlayer(playerid,Float:x,Float:y,Float:z,gmtext[],msgtext[],teletext[])
{
new 
doroname[MAX_PLAYER_NAME],string[128];
SetPlayerPos(playerid,x,y,z);
GameTextForPlayer(playerid,gmtext52);
GetPlayerName(playeriddoronamesizeof(doroname));
format(stringsizeof(string), "[TELE]:%s (ID:%d) has just Teleported To %s {FF6600}/%s"doronameplayeridmsgtextteletext);
SendClientMessageToAll(COLOR_LIGHTBLUEstring);
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.
Reply
#6

<removed>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)