Error - 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: Error (
/showthread.php?tid=424132)
Error -
DAVIDXP - 20.03.2013
Hey, I have a GM and when I WANT COMPILE HIM IT GIVES ME THESE ERRORS:
pawn Код:
(356) : error 012: invalid function call, not a valid address
(356) : warning 215: expression has no effect
(356) : error 001: expected token: ";", but found ")"
(356) : error 029: invalid expression, assumed zero
(356) : fatal error 107: too many error messages on one line
On this Line:
pawn Код:
if ( strlen( pAKA ) < 3 ) format( str, sizeof( str ),"*** {FFFF00}%s(%d) {ACACAC}has joined the server", PlayerName( playerid ), playerid );
Help me, and this is all script:
pawn Код:
if ( ServerInfo[ ConnectMessages ] == 1 )
{
new str[ 256 ], pAKA[ 256 ];
pAKA = dini_Get( "ladmin/config/aka.txt", tmp3 );
if ( strlen( pAKA ) < 3 ) format( str, sizeof( str ),"*** {FFFF00}%s(%d) {ACACAC}has joined the server", PlayerName( playerid ), playerid );
else if ( !strcmp( pAKA, PlayerName( playerid ), true ) ) format( str, sizeof( str ),"*** {FFFF00}%s(%d) {ACACAC}has joined the server", PlayerName( playerid ), playerid );
else format( str, sizeof( str ),"*** {FFFF00}%s(%d) {ACACAC}has joined the server ( AKA: {FFFF00}%s{ACACAC} )", PlayerName( playerid ), playerid, pAKA );
for ( new i = 0; i < MAX_PLAYERS; i++ ) if ( IsPlayerConnected( i ) && playerid != i )
{
if ( PlayerInfo[ i ][ Level ] > 2 ) SendClientMessage( i, COLOR_GREY, str );
else
{
format( str, sizeof( str ),"*** {FFFF00}%s(%d) {ACACAC}has joined the server", PlayerName( playerid ), playerid );
SendClientMessage( i, COLOR_GREY, str );
}
}
}
HELPPPP
Re: Error -
Joshman543 - 20.03.2013
pawn Код:
if ( ServerInfo[ ConnectMessages ] == 1 )
{
new str[ 256 ], pAKA[ 256 ];
pAKA = dini_Get( "ladmin/config/aka.txt", tmp3 );
format( str, sizeof( str ),"*** {FFFF00}%s(%d) {ACACAC}has joined the server", PlayerName( playerid ), playerid );
for ( new i = 0; i < MAX_PLAYERS; i++ ) if ( IsPlayerConnected( i ) && playerid != i )
{
if ( PlayerInfo[ i ][ Level ] > 2 ) SendClientMessage( i, COLOR_GREY, str );
else
{
format( str, sizeof( str ),"*** {FFFF00}%s(%d) {ACACAC}has joined the server", PlayerName( playerid ), playerid );
SendClientMessage( i, COLOR_GREY, str );
}
}
}