Posts: 824
Threads: 53
Joined: Jul 2010
Reputation:
0
Awesome guide, nothing less.
Posts: 123
Threads: 19
Joined: Jul 2010
Reputation:
0
C:\SAmp-server\Drift\gamemodes\grandlarc.pwn(90) : error 017: undefined symbol "World"
C:\SAmp-server\Drift\gamemodes\grandlarc.pwn(90) : warning 215: expression has no effect
C:\SAmp-server\Drift\gamemodes\grandlarc.pwn(90) : error 001: expected token: ";", but found "]"
C:\SAmp-server\Drift\gamemodes\grandlarc.pwn(90) : error 029: invalid expression, assumed zero
C:\SAmp-server\Drift\gamemodes\grandlarc.pwn(90) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
-.-
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
Sorry for that, as I said, I wasn't sure if there were any errors, providing that I did it in a rush and didn't compile it, well thanks, I fixed that.
Posts: 780
Threads: 58
Joined: Jan 2011
Reputation:
0
Good job Tee!
Very useful!
Posts: 2,268
Threads: 89
Joined: Apr 2009
Reputation:
0
Nice guide, but tutorials should be made without any rush, and the code should be tested before opening a thread.
Posts: 484
Threads: 49
Joined: Feb 2011
22.08.2011, 18:14
(
Last edited by Dragony92; 24/08/2011 at 08:40 AM.
)
You didn't define color Grey, spectatorid, specid....than string in command spec and you didn't comment two lines...
I think that's all
I didn't test it...
Edit: And also Float:
new Float:SpecX[MAX_PLAYERS], Float:SpecY[MAX_PLAYERS],
Float:SpecZ[MAX_PLAYERS], vWorld[MAX_PLAYERS], Inter[MAX_PLAYERS];
and argument 2
Code:
public OnPlayerDisconnect(playerid, reason)
{
if(IsBeingSpeced[playerid] == 1)//If the player being spectated, disconnects, then turn off the spec mode for the spectator.
{
TogglePlayerSpectating(spectatorid,0);// This justifies what's above, if it's not off then you'll be either spectating your connect screen, or somewhere in blueberry (I don't know why)
}
return 1;
}
Edit: I have test it, it works but dont want to re-spec user on player exit or enter vehicle....
Posts: 164
Threads: 26
Joined: Aug 2010
Reputation:
0
Can you make a 'Back' and ''next' function too?
I have problems with that.
Posts: 123
Threads: 13
Joined: Aug 2011
Reputation:
0
its great tutorial TEE 10/10
+1 reput!
Posts: 3,934
Threads: 353
Joined: Jan 2010
Reputation:
0
Good job mate, well explained to.
Posts: 43
Threads: 9
Joined: Sep 2011
Reputation:
0
need help with this
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\PPC_PlayerCommands.inc(3262) : error 017: undefined symbol "Grey"
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\PPC_PlayerCommands.inc(3263) : error 017: undefined symbol "Grey"
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\PPC_PlayerCommands.inc(3264) : error 017: undefined symbol "Grey"
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\PPC_PlayerCommands.inc(3265) : error 017: undefined symbol "IsSpecing"
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\PPC_PlayerCommands.inc(3265) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\PPC_PlayerCommands.inc(3265) : error 001: expected token: ";", but found "]"
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\PPC_PlayerCommands.inc(3265) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\PPC_PlayerCommands.inc(3265) : fatal error 107: too many error messages on one line
Posts: 54
Threads: 9
Joined: Jun 2011
Reputation:
0
GetPlayerPos(playerid,SpecX[playerid],SpecY[playerid],SpecZ[playerid]); this code is giving this warning
warning 213: tag mismatch
anyone know how to fix it?
Posts: 77
Threads: 6
Joined: Jun 2010
Reputation:
0
if(newstate == PLAYER_STATE_ONFOOT
You missed the close bracket )
Other than that great tutorial! Another question when I do use anything with PLAYER_STATE_ONFOOT everyone get's bugged and keeps disappearing. Do you know how this is caused?
Posts: 1,216
Threads: 59
Joined: Apr 2010
Reputation:
0
With your code, only one spectator will get full advantage, since there is only one variable - spectatorid.