SA-MP Forums Archive
problem with teleport - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: problem with teleport (/showthread.php?tid=80439)



problem with teleport - xwy - 04.06.2009

what i am doing wrong here
C:\Documents and Settings\Bling\Desktop\Samp\gamemodes\Untitled.pwn (121) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Bling\Desktop\Samp\gamemodes\Untitled.pwn (121) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.





public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/abi", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xAA3333AA,"Tццtab,eks" );
return 1;

}
if (strcmp("/tele", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 0,1483.6365,-866.4748,58.4793,107.2352);
//heres the problem?
SetPlayerInterior(playerid,11);

return 1;
}
return 1;

}


Re: problem with teleport - Klutty - 04.06.2009

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/abi", cmdtext, true, 10) == 0)
  {
   SendClientMessage(playerid,0xAA3333AA,"Tццtab,eks");
   return 1;

  }
  if (strcmp("/tele", cmdtext, true, 10) == 0)
  {
    SetPlayerPos(playerid, 1483.6365,-866.4748,58.4793);
    SetPlayerInterior(playerid,11);
    return 1;
  }
 
  return 0;
}



Re: problem with teleport - xwy - 04.06.2009

Thank you. it fixed that problem
but now i got problem with that end
}

return 0;
}


Re: problem with teleport - Lorrden - 04.06.2009

what's the error ?


Re: problem with teleport - xwy - 04.06.2009

C:\Documents and Settings\Bling\Desktop\Samp\gamemodes\Untitled.pwn (129) : warning 217: loose indentation


Re: problem with teleport - cigo - 04.06.2009

just use space or backspace to move it in correct place


Re: problem with teleport - Klutty - 04.06.2009

Quote:
Originally Posted by cigo
just use space or backspace to move it in correct place
Use tab 1 time from the start, and tadaa.


Re: problem with teleport - cigo - 04.06.2009

thanks, I didn't know that


Re: problem with teleport - xwy - 04.06.2009

uhh im sure everything is in place or im just so idiot
pawn Код:
{
    SetPlayerPos(playerid, 1483.6365,-866.4748,58.4793);
    SetPlayerInterior(playerid,11);
    return 1;
    }

    return 0;
}



Re: problem with teleport - Klutty - 04.06.2009

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/tele", cmdtext, true, 10) == 0)
    {
    SetPlayerPos(playerid, 1483.6365,-866.4748,58.4793);
    SetPlayerInterior(playerid,11);
    return 1;
    }

    return 0;
}
EDIT: Forums seiously fucks up indentation, fix it yourself.