SA-MP Forums Archive
[Tutorial] How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] (/showthread.php?tid=276052)

Pages: 1 2


Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - jhn - 17.10.2011

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"


Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - Malinark - 02.11.2011

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.


Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - Ћilvėnas - 04.11.2011

it's a mix-up DD


Re: How to make a simple spec command [ZCMD and sscanf] [Virtual World and Interior Support] - Tee - 20.11.2011

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!