#1

Код HTML:
D:\GTA\ÑÅÐÂ\SA-MP 0.3.7 RC1 Windows Server\pawno\ping.pwn(22) : error 010: invalid function or declaration
D:\GTA\ÑÅÐÂ\SA-MP 0.3.7 RC1 Windows Server\pawno\ping.pwn(25) : error 010: invalid function or declaration
D:\GTA\ÑÅÐÂ\SA-MP 0.3.7 RC1 Windows Server\pawno\ping.pwn(27) : error 010: invalid function or declaration
D:\GTA\ÑÅÐÂ\SA-MP 0.3.7 RC1 Windows Server\pawno\ping.pwn(31) : error 010: invalid function or declaration
D:\GTA\ÑÅÐÂ\SA-MP 0.3.7 RC1 Windows Server\pawno\ping.pwn(33) : error 010: invalid function or declaration
D:\GTA\ÑÅÐÂ\SA-MP 0.3.7 RC1 Windows Server\pawno\ping.pwn(36) : error 010: invalid function or declaration
D:\GTA\ÑÅÐÂ\SA-MP 0.3.7 RC1 Windows Server\pawno\ping.pwn(44) : error 021: symbol already defined: "format"
D:\GTA\ÑÅÐÂ\SA-MP 0.3.7 RC1 Windows Server\pawno\ping.pwn(46) : error 010: invalid function or declaration
D:\GTA\ÑÅÐÂ\SA-MP 0.3.7 RC1 Windows Server\pawno\ping.pwn(49) : warning 203: symbol is never used: "tmp"
D:\GTA\ÑÅÐÂ\SA-MP 0.3.7 RC1 Windows Server\pawno\ping.pwn(49) : warning 203: symbol is never used: "wfps"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
22ptask asdasd[1000](playerid)
23{
24 new drunknew;
25 drunknew = GetPlayerDrunkLevel(playerid);
26
27 if (drunknew < 100)
28 {
29 SetPlayerDrunkLevel(playerid, 2000);
30 }
31 else
32 {
33 if (pDrunkLevelLast[playerid] != drunknew)
34 {
35 new wfps = pDrunkLevelLast[playerid] - drunknew;
36 if ((wfps > 0) && (wfps < 200))
37 pFPS[playerid] = wfps;
38 pDrunkLevelLast[playerid] = drunknew;
39 }
40}
41
42 //FPS/Ping
43 static tmp[128];
44 format(tmp, sizeof(tmp), "{FFFF00}FPS: {FF0000}%i\n{FFFF00}Ping: {FF0000}%i", 45pFPS[playerid], GetPlayerPing(playerid));
46 Update3DTextLabelText(PlayerLabel[playerid], 0xFFFFFFFF, tmp);
47 return 1;
48}
49
Reply
#2

Do you have this placed under any functions?
If you don't have it in any functions/callbacks, it won't work.
Reply
#3

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Do you have this placed under any functions?
If you don't have it in any functions/callbacks, it won't work.
that is
Reply
#4

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Do you have this placed under any functions?
If you don't have it in any functions/callbacks, it won't work.
Incorrect, these are from y_timers. These do not need to be placed within any callbacks or functions, as they are technically 'stock' functions.

--

@OP, you need to include y_timers...
pawn Код:
#include <YSI\y_timers>
If you have this under a callback or another function, move it so that it is by itself. Treat it as if it is it's own callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)