OnPlayerText Errors! - 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: OnPlayerText Errors! (
/showthread.php?tid=419787)
Can't use OnPlayerText! -
DarkPower - 02.03.2013
Код:
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"
Re : OnPlayerText Errors! -
yusei - 02.03.2013
PHP код:
public OnPlayerText(playerid, text[])
{
return true;
}
1 = true
0 = false
return 1; = return true;
return 0; = return false;
Re: OnPlayerText Errors! -
DarkPower - 02.03.2013
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...
Re: OnPlayerText Errors! -
DarkPower - 02.03.2013
I can't use OnPlayerText :-/
Re: OnPlayerText Errors! - Patrick - 02.03.2013
can you show us line
6834 and
6832?
Re: OnPlayerText Errors! -
DarkPower - 02.03.2013
pawn Код:
public OnPlayerText(playerid, text[]) // THIS 6832
{
return 1; // THIS 6834
}
Re: OnPlayerText Errors! - Patrick - 02.03.2013
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"
Re: OnPlayerText Errors! -
DarkPower - 02.03.2013
Edit: I found a problem -.-
I have
Lock please!