OnPlayerText Errors!
#1

Код:
C:\Users\Name\Desktop\Server\gamemodes\be.pwn(6832) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Name\Desktop\Server\gamemodes\be.pwn(6832) : error 029: invalid expression, assumed zero
C:\Users\Name\Desktop\Server\gamemodes\be.pwn(6834) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
I get that errors when i put OnPlayerText callback in script, i don't know what is the problem...

pawn Код:
public OnPlayerText(playerid, text[])
{
    return (true);
}
Includes:
pawn Код:
#include "a_samp"
#include "flood"
#include "streamer"
#include "sscanf2"
#include "YSI\y_commands"
#include "YSI\y_ini"
#include "YSI\y_hooks"
#include "foreach"
Reply
#2

PHP код:
public OnPlayerText(playeridtext[])
{
    return 
true;

1 = true
0 = false


return 1; = return true;
return 0; = return false;
Reply
#3

Same think...
It's same with:

return 1;
return 0;
return true;
return false;
return (true);
return (false);
return (1);
return (0);

It's not problem in that...
Reply
#4

I can't use OnPlayerText :-/
Reply
#5

can you show us line 6834 and 6832?
Reply
#6

pawn Код:
public OnPlayerText(playerid, text[]) // THIS 6832
{
    return 1; // THIS 6834
}
Reply
#7

why not try to insert your include like this
pawn Код:
#include    <a_samp>
#include    <flood>
#include    <streamer>
#include    <sscanf2>
#include    <YSI\y_commands>
#include    <YSI\y_ini>
#include    <YSI\y_hooks>
#include    <foreach>
Instead of
pawn Код:
#include "a_samp"
#include "flood"
#include "streamer"
#include "sscanf2"
#include "YSI\y_commands"
#include "YSI\y_ini"
#include "YSI\y_hooks"
#include "foreach"
Reply
#8

Edit: I found a problem -.-

I have
pawn Код:
#define text "{HEX...}"
Lock please!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)