help Guys!
#1

i am getting this

pawn Код:
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(36) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Script

pawn Код:
#define MUTE_TIME \
   (3)

#define S_To_MS(%0) \
   (%0 * 1000)

   if(GetPVarInt(playerid, "SpamInterval") > GetTickCount()) return SendClientMessage(playerid, 0xFFFFBBBB, ">> Anti-Spam: Wait 3 seconds to talk again."), 0;
SetPVarInt(playerid, "SpamInterval", GetTickCount() + S_To_MS(MUTE_TIME));
Reply
#2

pawn Код:
if(GetPVarInt(playerid, "SpamInterval") > GetTickCount()) SendClientMessage(playerid, 0xFFFFBBBB, ">> Anti-Spam: Wait 3 seconds to talk again."), return 0;
Reply
#3

pawn Код:
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(36) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Diamondeye96@yahoo.com
Reply
#4

No Roomeo, just post the full fs better, We can't understand half code, Cuz maybe you included different things.
Reply
#5

pawn Код:
if(GetPVarInt(playerid, "SpamInterval") > GetTickCount())
{
    SendClientMessage(playerid, 0xFFFFBBBB, ">> Anti-Spam: Wait 3 seconds to talk again.")
    return 0;
}
Maybe. BTW dude above me asking for scripts, Why are you asking for full scripts?...
Reply
#6

^^But with a semicolon on the message line.
Reply
#7

Quote:
Originally Posted by [WF]Demon
Посмотреть сообщение
pawn Код:
if(GetPVarInt(playerid, "SpamInterval") > GetTickCount())
{
    SendClientMessage(playerid, 0xFFFFBBBB, ">> Anti-Spam: Wait 3 seconds to talk again.")
    return 0;
}
Maybe. BTW dude above me asking for scripts, Why are you asking for full scripts?...
pawn Код:
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(36) : error 010: invalid function or declaration
I:\Games\RockStar Game Gta San Andreas\Gta Sanandreas\My Script\gamemodes\MyScript.pwn(39) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
pawn Код:
#define MUTE_TIME \
   (3)

#define S_To_MS(%0) \
   (%0 * 1000)

   if(GetPVarInt(playerid, "SpamInterval") > GetTickCount())
{
    SendClientMessage(playerid, 0xFFFFBBBB, ">> Anti-Spam: Wait 3 seconds to talk again.")
    return 0;
}
Reply
#8

It was you with the old includes ealier, you need to get the latest server package!!!
Reply
#9

from where? i don't understand latest server package? :S i have SA-MP 0.3c
Reply
#10

Just be sure because everytime your using PVars your geting either "undefined symbol" or "invalid function" get the package from here http://www.sa-mp.com/download.php

Btw your server might be 0.3 but you might be using old includes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)