[Tutorial] How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support]
#21

Quote:
Originally Posted by random123
View Post
GetPlayerPos(playerid,SpecX[playerid],SpecY[playerid],SpecZ[playerid]); this code is giving this warning
warning 213: tag mismatch
anyone know how to fix it?
Change this:
Code:
new Float:SpecX[MAX_PLAYERS], Float:SpecY[MAX_PLAYERS], SpecZ[MAX_PLAYERS], vWorld[MAX_PLAYERS], Inter[MAX_PLAYERS];
tothis:
Code:
new Float:SpecX[MAX_PLAYERS], Float:SpecY[MAX_PLAYERS], Float:SpecZ[MAX_PLAYERS], vWorld[MAX_PLAYERS], Inter[MAX_PLAYERS];
He had forgotten to put "Float: SpecZ"
Reply
#22

Its a nice /spec, but i was wondering if any 1 had some ideas on how to fix some of the problems with it.
IsBeingSpeced isn't set to 0 if u /spec someone else with out /stopspec first which can cause problems.

if 2 admins /spec to different players, there is 2 players with IsBeingSpeced = 1 which causes problems.
Reply
#23

it's a mix-up DD
Reply
#24

Quote:
Originally Posted by wups
View Post
With your code, only one spectator will get full advantage, since there is only one variable - spectatorid.
I fixed that, thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)