timer prob - 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: timer prob (
/showthread.php?tid=356777)
timer prob -
kepa333 - 04.07.2012
so i made public shit for timer but now i got some errors...
Код HTML:
public tuttime1()
{
InterpolateCameraPos(tutplayers, 813.0571, -1400.3551, 12.7071, 1203.9504, -1405.3339, 15.6274, 10000, CAMERA_MOVE);
InterpolateCameraLookAt(tutplayers, 814.0610, -1400.3408, 12.9071, 1203.5706, -1404.4026, 15.5923, 10000, CAMERA_MOVE);
tuttime12 = TextDrawCreate(240.0,580.0,"Hospital");
return 1;
}
ERRORS:
Код HTML:
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\mazda.pwn(2972) : error 017: undefined symbol "tutplayers"
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\mazda.pwn(2973) : error 017: undefined symbol "tutplayers"
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\mazda.pwn(2974) : warning 204: symbol is assigned a value that is never used: "tuttime12"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: timer prob -
Tee - 04.07.2012
pawn Код:
public tuttime1(tutplayers)
{
InterpolateCameraPos(tutplayers, 813.0571, -1400.3551, 12.7071, 1203.9504, -1405.3339, 15.6274, 10000, CAMERA_MOVE);
InterpolateCameraLookAt(tutplayers, 814.0610, -1400.3408, 12.9071, 1203.5706, -1404.4026, 15.5923, 10000, CAMERA_MOVE);
tuttime12 = TextDrawCreate(240.0,580.0,"Hospital");
return 1;
}
You didn't create a parameter in the function.
Re: timer prob -
kepa333 - 04.07.2012
got same problems
Re: timer prob -
FUNExtreme - 04.07.2012
Should the function execute for one player or all all players? I assume for all players because tutplayerS is plural, you will need to use a loop for that!