Irc OnUserDisconnect
#1

Hey, this public is giving me errors

PHP код:
public IRC_OnUserDisconnect(botiduser[], host[], message[])
{
        
printf("*** IRC_OnUserDisconnect (Bot ID %d): User %s (%s) disconnected (%s)"botiduserhostmessage);
        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.
Reply
#2

Problem from line
PHP код:
Public IRC_OnUserDisconnect(botiduser[], host[], message[]) 
Reply
#3

It's before this line search for TDStats and lines before it
Reply
#4

TDStats i made it but i fixed but also it gives same errors
Reply
#5

No errors on that line.
Reply
#6

It gives me this errors when i add IRC_OnUserDisconnect
Reply
#7

It's an error before this line search above this line you'll maybe find a missing " ; " or bracket.
Reply
#8

Really?
Thats before it

PHP код:
public IRC_OnReceiveRaw(botidmessage[])
{
        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(filemessage);
                
fwrite(file"\r\n");
                
fclose(file);
        }
        return 
1;

Reply
#9

Any irc fs i upload it gives that errors
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)