SA-MP Forums Archive
help Guys! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help Guys! (/showthread.php?tid=237234)



help Guys! - Roomeo - 09.03.2011

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));



Re: help Guys! - iggy1 - 09.03.2011

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



Re: help Guys! - Roomeo - 09.03.2011

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


Re: help Guys! - Davz*|*Criss - 09.03.2011

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


Re: help Guys! - [WF]Demon - 09.03.2011

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


Re: help Guys! - iggy1 - 09.03.2011

^^But with a semicolon on the message line.


Re: help Guys! - Roomeo - 09.03.2011

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;
}



Re: help Guys! - iggy1 - 09.03.2011

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


Re: help Guys! - Roomeo - 09.03.2011

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


Re: help Guys! - iggy1 - 09.03.2011

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.