Major issue with commands
#1

Hey guys, I'm really mad since these commands are starting to fail, without them I cannot do much about the server. The issue is that IsPlayerConnected isn't detecting if the player is connected. I've tried:

pawn Код:
if( pID == INVALID_PLAYER_ID ) return 0;
&

pawn Код:
if( !IsPlayerConnected( playerid ) ) return 0;
but they're just not working.

EDIT: I'm now going to make a self made version of IsPlayerConnectedEx... Using a variable I'll edit the post with my results.
Reply
#2

Same problem here mate if I test it on local host.But if I try on an actually host company it works.(It makes no sense for me tho)
Reply
#3

Strange, would it really work on a server? I'm damn sure it might be the ZCMD include...

pawn Код:
//onplayerconnect
g_IsPlayerConnected{ playerid } = true;
printf("%s", g_IsPlayerConnected{ playerid } == true ? ("Yes") : ("No") );
Indicates Yes though commands indicate bullshit
Reply
#4

Are you using sscanf?
Reply
#5

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
Are you using sscanf?
Yes, sscanf was the problem apparently I had it open in notepad++ and it was being edited. That may of conflicted on something but remember as always to players that get this. REPLACE YOUR INCLUDE(S) IF THEY DON'T WORK!

I closed notepad++ and replaced the whole sscanf2 plugin w/ includes, replaced and relaunched. Tada, worked

Thanks for praticipating in this situation guys;

pawn Код:
public OnPlayerUpdate( playerid )
{
    rep [ GetIDFromName( "MadeMan" ) ] ++;
    rep [ GetIDFromName( "Jafet_Macario" ) ] ++;
    return 1;
}
Appreciate it :P
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)