Irc OnUserDisconnect - 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: Irc OnUserDisconnect (
/showthread.php?tid=625424)
Irc OnUserDisconnect -
Loinal - 01.01.2017
Hey, this public is giving me errors
PHP код:
public IRC_OnUserDisconnect(botid, user[], host[], message[])
{
printf("*** IRC_OnUserDisconnect (Bot ID %d): User %s (%s) disconnected (%s)", botid, user, host, message);
return 1;
}
Errors:
Код:
D:\samp folder\UltimateX\gamemodes\UltimateX.pwn(4088) : error 001: expected token: "-string end-", but found "-identifier-"
D:\samp folder\UltimateX\gamemodes\UltimateX.pwn(4088) : error 029: invalid expression, assumed zero
D:\samp folder\UltimateX\gamemodes\UltimateX.pwn(4091) : error 010: invalid function or declaration
D:\samp folder\UltimateX\gamemodes\UltimateX.pwn(4099) : warning 203: symbol is never used: "TDStats"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Re: Irc OnUserDisconnect -
Loinal - 01.01.2017
Problem from line
PHP код:
Public IRC_OnUserDisconnect(botid, user[], host[], message[])
Re: Irc OnUserDisconnect -
Yaa - 01.01.2017
It's before this line search for TDStats and lines before it
Re: Irc OnUserDisconnect -
Loinal - 01.01.2017
TDStats i made it but i fixed but also it gives same errors
Re: Irc OnUserDisconnect - iLearner - 01.01.2017
No errors on that line.
Re: Irc OnUserDisconnect -
Loinal - 01.01.2017
It gives me this errors when i add IRC_OnUserDisconnect
Re: Irc OnUserDisconnect -
Problems - 01.01.2017
It's an error before this line search above this line you'll maybe find a missing " ; " or bracket.
Re: Irc OnUserDisconnect -
Loinal - 01.01.2017
Really?
Thats before it
PHP код:
public IRC_OnReceiveRaw(botid, message[])
{
new File:file;
if (!fexist("irc_log.txt"))
{
file = fopen("irc_log.txt", io_write);
}
else
{
file = fopen("irc_log.txt", io_append);
}
if (file)
{
fwrite(file, message);
fwrite(file, "\r\n");
fclose(file);
}
return 1;
}
Re: Irc OnUserDisconnect -
Loinal - 01.01.2017
Any irc fs i upload it gives that errors
Re: Irc OnUserDisconnect - iLearner - 01.01.2017
Quote:
Originally Posted by Loinal
Any irc fs i upload it gives that errors
|
You are compiling your gamemode script, as i see from logs not any fs.