whats wrong with this
#1

pawn Код:
SetPlayerCameraPos(i,2178.0398,-1645.7175,15.1080);
SetPlayerCameraLookAt(i,2165.1697,-1637.3280,14.2398);
GetPlayerCameraPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerCameraPos(playerid, pos[0], pos[1]+0.01, pos[2]);
SetTimerEx("SetPlayerCameraPos, 1, 9999, i, playerid);
C:\Users\***\Documents\LCRP\gamemodes\.pwn(969) : error 017: undefined symbol "i"
C:\Users\***\Documents\LCRP\gamemodes\.pwn(970) : error 017: undefined symbol "i"
C:\Users\***\Documents\LCRP\gamemodes\.pwn(973) : error 037: invalid string (possibly non-terminated string)
C:\Users\***\Documents\LCRP\gamemodes\.pwn(973) : error 076: syntax error in the expression, or invalid function call
C:\Users\***\Documents\LCRP\gamemodes\.pwn(973) : error 029: invalid expression, assumed zero
C:\Users\***\Documents\LCRP\gamemodes\.pwn(973) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Reply
#2

pawn Код:
SetPlayerCameraPos(playerid,2178.0398,-1645.7175,15.1080);
SetPlayerCameraLookAt(playerid,2165.1697,-1637.3280,14.2398);
GetPlayerCameraPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerCameraPos(playerid, pos[0], pos[1]+0.01, pos[2]);
SetTimerEx("SetPlayerCameraPos", 9999, true, "i", playerid);
Reply
#3

lol'd
Quote:

SetTimerEx("SetPlayerCameraPos, 1, 9999, i, playerid);

You forgot a " ater 'Pos'., so
pawn Код:
SetTimerEx("SetPlayerCameraPos", 1, 9999, i, playerid);
and the "i" must be in quotes too

pawn Код:
SetTimerEx("SetPlayerCameraPos", 1, 9999, "i", playerid);
So:

pawn Код:
SetPlayerCameraPos(i,2178.0398,-1645.7175,15.1080);
SetPlayerCameraLookAt(playerid,2165.1697,-1637.3280,14.2398);
GetPlayerCameraPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerCameraPos(playerid, pos[0], pos[1]+0.01, pos[2]);
SetTimerEx("SetPlayerCameraPos", 1, 9999, "i", playerid);
Try that, and next time, please show us which line gave the errors

EDIT:
SetTimerEx is wrong used.
Quote:

(funcname[], interval, repeating, const format[], {Float,_}:...)

You have: SetTimerEx(~, 1, 9999, ~)

repeating as 9999? it's OR 1/true, OR 0/false

So it should be probably
pawn Код:
SetTimerEx("SetPlayerCameraPos", 9999, true, "i", playerid);
Reply
#4

right thanks for you help youve sovled all of my errors but i stilll have 2 how to define i
Reply
#5

You have to define 'i'? Why that?
Reply
#6

i have no idea ive tryed doing values player id and i cant get rid of defining i im stumped

C:\Users\***\Documents\LCRP\gamemodes\.pwn(969) : error 017: undefined symbol "i"
C:\Users\***\Documents\LCRP\gamemodes\.pwn(970) : error 017: undefined symbol "i"

these lines
pawn Код:
SetPlayerCameraPos(i,2178.0398,-1645.7175,15.1080);
SetPlayerCameraLookAt(i,2165.1697,-1637.3280,14.2398);
Reply
#7

i changed i to player id send a reply if this is wrong imma test it thanks for you help
Reply
#8

right its not rotating :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)