/goto errors i need help
#5

I suggest you to optimise your scripts like this:

PHP код:
ocmd:goto(playeridparams[])
{
    new 
Float:Pos[3];
    if(
sscanf(params"u"strval(params))) return SendClientMessage(playerid, -1"{FF8000}Syntax: /Goto [ID]");
    if(
strval(params) == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1"{FF8000}ERROR: Player not connected!");
    if(
strval(params) == playerid) return SendClientMessage(playerid, -1"{FF8000}ERROR: You can't teleport to Yourself!");
    
GetPlayerPos(strval(params), Pos[0], Pos[1], Pos[2]); SetPlayerPos(playeridPos[0], Pos[1], Pos[2]); return 1;

Reply


Messages In This Thread
/goto errors i need help - by kevi11 - 09.03.2016, 12:35
Re: /goto errors i need help - by Golden96 - 09.03.2016, 12:58
Re: /goto errors i need help - by kevi11 - 09.03.2016, 13:05
Re: /goto errors i need help - by saffierr - 09.03.2016, 13:08
Re: /goto errors i need help - by TheHonnor - 09.03.2016, 13:21
Re: /goto errors i need help - by xTURBOx - 09.03.2016, 14:49

Forum Jump:


Users browsing this thread: 2 Guest(s)