Warning:
#1

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?
Reply
#2

Show the lines.
Reply
#3

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);
Reply
#4

SetPlayerCameraPos(playerid, 1961.8137,1342.7563,15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);


Refer to: https://sampwiki.blast.hk/wiki/SetPlayerCameraPos
Reply
#5

Код:
SetPlayerCameraPos(playerid,1961.8137,1342.7563,15.3746);
	SetPlayerCameraLookAt(playerid,1958.3783, 1343.1572, 15.3746);
Use this
Reply
#6

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"
Reply
#7

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?
Reply
#8

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 ..?
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)