problem with teleport
#1

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;

}
Reply
#2

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;
}
Reply
#3

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

return 0;
}
Reply
#4

what's the error ?
Reply
#5

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

just use space or backspace to move it in correct place
Reply
#7

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.
Reply
#8

thanks, I didn't know that
Reply
#9

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;
}
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)