I got that thing in my server console...
Line's it gives this on is 540 and 2659:
FIXED! For others with this problem: Check if users are connected!
l540:
PHP Code:
F_Print(id, "You got 10 dollars!"); //Line 540
Function #1
PHP Code:
F_Print(id, const sMsg[], any:...)
{
static i; i = id ? id : get_Player();
if ( !i ) return;
new sMessage[256];
new len = formatex(sMessage, sizeof(sMessage) - 1, "^x04[%s %s]^x03 ", PLUGIN_PREFIX, VERSION);
vformat(sMessage[len], sizeof(sMessage) - 1 - len, sMsg, 3);
sMessage[192] = '^0';
static msgid_SayText;
if ( !msgid_SayText ) msgid_SayText = get_user_msgid("SayText");
new const team_Names[][] =
{
"",
"TERRORIST",
"CT",
"SPECTATOR"
};
new sTeam = get_user_team(i);
team_Info(i, id, team_Names[0]);
message_begin(id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgid_SayText, _, id);
write_byte(i);
write_string(sMessage);
message_end();
team_Info(i, id, team_Names[sTeam]); //Line 2659!
}
Function #2:
PHP Code:
team_Info(receiver, sender, sTeam[])
{
static msgid_TeamInfo;
if ( !msgid_TeamInfo ) msgid_TeamInfo = get_user_msgid("TeamInfo");
message_begin(sender ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgid_TeamInfo, _, sender);
write_byte(receiver);
write_string(sTeam);
message_end();
}
Function #3:
PHP Code:
get_Player()
{
for ( new id = 1; id <= gMaxPlayers; id++ )
{
if ( gbConnected[id] )
{
return id;
}
}
return 0;
}
Please help , what can the problem be ?
__________________