Hellosztok!Átnéztem kribeg graffiti munkáját és én erre jutottam!
[pawn]#include <a_samp>
#define YSI_IS_CLIENT
#define YSI_IS_SERVER
#include <gvar>
#define GLOBAL_VARTYPE_NONE (0)
#define GLOBAL_VARTYPE_INT (1)
#define GLOBAL_VARTYPE_STRING (2)
#define GLOBAL_VARTYPE_FLOAT (3)
#include <sprayTag>
#define io_open
public OnPlayerReceiveSprayPermission( playerid, errorID )
{
if( !errorID )
printf(\"clientid %i has just received spraying permission.\", playerid);
return true;
}
public OnPlayerCreateSpray( playerid, sprayID )
{
printf( \"SprayID: %i has been created.\", sprayID );
static
s_string[ 100 ],
File: log
;
GetPlayerName( playerid, s_string, MAX_PLAYER_NAME );
format( s_string, sizeof s_string, \"%s|%i\", s_string, gettime( ) );
log = fopen( \"spray_log.log\", fexist( \"spray_log.log \" ) ? io_append : io_open );
fwrite( log, s_string );
fclose( log );
}
public OnSprayDelete( sprayID )
{
printf( \"SprayID: %i has been deleted.\", sprayID );
return true;
}
public OnPlayerConnect( playerid )
{
Spray::givePlayerPermission( playerid, true );
return true;
}[/pawn]
és ezt a hibíüzit kapom:
D:\\samp03csvr_R2-2_win32\\filterscripts\\graffiti.pwn(35) : error 029: invalid expression, assumed zero
D:\\samp03csvr_R2-2_win32\\filterscripts\\graffiti.pwn(35) : warning 213: tag mismatch
D:\\samp03csvr_R2-2_win32\\filterscripts\\graffiti.pwn(35) : error 001: expected token: \",\", but found \";\"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Elõre is kösz a segítségetek!
[mod] [ pawn ] [ /pawn ][/mod]