Help me with the tutorial please
#4

Quote:
Originally Posted by MenaceX^
1. You are using loop in this part, probably
pawn Код:
for(new i=0;i<MAX_PLAYERS;i++)
So playerid couldn't be found because playerid is used to be as "i"
just change
pawn Код:
SetPlayerInterior(playerid,5);
  SetPlayerPos(playerid,323.4,305.6,999.1);
  SetPlayerFacingAngle(playerid, 90.0);
  SetPlayerCameraPos(playerid,323.4-1.5-1.0,305.6,999.1+0.7);
  SetPlayerCameraLookAt(playerid,323.4-1.0,305.6,999.1+0.7);
To
pawn Код:
SetPlayerInterior(i,5);
  SetPlayerPos(i,323.4,305.6,999.1);
  SetPlayerFacingAngle(i, 90.0);
  SetPlayerCameraPos(i,323.4-1.5-1.0,305.6,999.1+0.7);
  SetPlayerCameraLookAt(i,323.4-1.0,305.6,999.1+0.7);
2. Things that related to GF must be in the GF topic.
Thanks you, its very good and work, but the pawno gives me some warnigs,:

C:\Documents and Settings\Usuario\Mis documentos\NL-RP\pawno\LU.pwn(5050) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Mis documentos\NL-RP\pawno\LU.pwn(5067) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Usuario\Mis documentos\NL-RP\pawno\LU.pwn(5082) : warning 219: local variable "i" shadows a variable at a preceding level
Reply


Messages In This Thread
Help me with the tutorial please - by Aguilera - 05.05.2009, 19:35
Re: Help me with the tutorial please - by Rks25 - 05.05.2009, 19:36
Re: Help me with the tutorial please - by MenaceX^ - 05.05.2009, 19:49
Re: Help me with the tutorial please - by Aguilera - 06.05.2009, 16:25
Re: Help me with the tutorial please - by Danut - 06.05.2009, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)