Warning: - 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)
+--- Thread: Warning: (
/showthread.php?tid=515294)
Warning: -
Bek_Loking - 25.05.2014
I got 2 warnings which I don't know how to fix; It says this:
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial .pwn(35) : warning 213: tag mismatch
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial .pwn(36) : warning 213: tag mismatch
tag mismatch? I think it has to do something with playerid, but when I place it I get unindentified symbol "playerid"
Help?
Re : Warning: -
yusei - 25.05.2014
Show the lines.
Re: Re : Warning: -
Bek_Loking - 25.05.2014
Quote:
Originally Posted by yusei
Show the lines.
|
Excuse me I forgot, I'm in a little rush..
Код:
SetPlayerCameraPos(1961.8137,1342.7563,15.3746,84.9242);
SetPlayerCameraLookAt(1958.3783, 1343.1572, 15.3746, 269.1425);
Re: Warning: -
Jack_Leslie - 25.05.2014
SetPlayerCameraPos(
playerid, 1961.8137,1342.7563,15.3746);
SetPlayerCameraLookAt(
playerid, 1958.3783, 1343.1572, 15.3746);
Refer to:
https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
Re: Warning: -
Rockyyy - 25.05.2014
Код:
SetPlayerCameraPos(playerid,1961.8137,1342.7563,15.3746);
SetPlayerCameraLookAt(playerid,1958.3783, 1343.1572, 15.3746);
Use this
Re: Warning: -
Bek_Loking - 25.05.2014
Aaand what happens is:
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial .pwn(35) : error 017: undefined symbol "playerid"
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial .pwn(36) : error 017: undefined symbol "playerid"
Re: Warning: -
Jack_Leslie - 25.05.2014
Quote:
Originally Posted by Bek_Loking
Aaand what happens is:
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial .pwn(35) : error 017: undefined symbol "playerid"
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial .pwn(36) : error 017: undefined symbol "playerid"
|
Where abouts are you putting this code? Like under what public function?
Re: Warning: -
Bek_Loking - 25.05.2014
Quote:
Originally Posted by Jack_Leslie
Where abouts are you putting this code? Like under what public function?
|
Umm Under, let me check, public OnGameModeInit ..?
Re: Warning: -
Jack_Leslie - 25.05.2014
Quote:
Originally Posted by Bek_Loking
Umm Under, let me check, public OnGameModeInit ..?
|
You can't put anything under OnGameModeInit that requires a playerid. Try putting it under OnPlayerRequestClass.