YUP.inc problem
#1

I tried to use it that include:
PHP код:
public OnPlayerPause(playerid)
{
if(!
YUP_IsPlayerPaused(playerid)) {
new 
string[128];
format(stringsizeof(string),".AFK рлрс моцб %s дщзчп **",GetName(playerid));
SendClientMessageToAll(COLOR_ORANGEstring);
AFK[playerid] = 1;
TogglePlayerControllable(playerid,0);
}
return 
0;
}
//------------------------------------------------------------------------------
public OnPlayerUnpause(playerid)
{
if(
YUP_IsPlayerPaused(playerid)) {
new 
string[128];
format(stringsizeof(string),".AFK йца ооцб %s дщзчп ***",GetName(playerid));
SendClientMessageToAll(COLOR_GREENstring);
TogglePlayerControllable(playerid,1);
AFK[playerid] = 0;
}
return 
0;
}
//------------------------------------------------------------------------------ 
The problem is that it does not show my..
Reply
#2

Someone?
Reply
#3

Try with this:
Код:
public OnPlayerPause(playerid) 
{ 
new string[128]; 
format(string, sizeof(string),".AFK рлрс моцб %s дщзчп **",GetName(playerid)); 
SendClientMessageToAll(COLOR_ORANGE, string); 
AFK[playerid] = 1; 
TogglePlayerControllable(playerid,0); 
return 0; 
} 
//------------------------------------------------------------------------------ 
public OnPlayerUnpause(playerid) 
{ 
new string[128]; 
format(string, sizeof(string),".AFK йца ооцб %s дщзчп ***",GetName(playerid)); 
SendClientMessageToAll(COLOR_GREEN, string); 
TogglePlayerControllable(playerid,1); 
AFK[playerid] = 0; 
return 0; 
} 
//------------------------------------------------------------------------------
Reply
#4

Quote:
Originally Posted by costel_nistor96
Посмотреть сообщение
Try with this:
Код:
public OnPlayerPause(playerid) 
{ 
new string[128]; 
format(string, sizeof(string),".AFK рлрс моцб %s дщзчп **",GetName(playerid)); 
SendClientMessageToAll(COLOR_ORANGE, string); 
AFK[playerid] = 1; 
TogglePlayerControllable(playerid,0); 
return 0; 
} 
//------------------------------------------------------------------------------ 
public OnPlayerUnpause(playerid) 
{ 
new string[128]; 
format(string, sizeof(string),".AFK йца ооцб %s дщзчп ***",GetName(playerid)); 
SendClientMessageToAll(COLOR_GREEN, string); 
TogglePlayerControllable(playerid,1); 
AFK[playerid] = 0; 
return 0; 
} 
//------------------------------------------------------------------------------
That's the right code, you were doing this:

pawn Код:
public OnPlayerPause(playerid) // called when the player PAUSES
{
    if (!YUP_IsPlayerPaused(playerid)) // Checking if the player ISN'T paused.
Reply
#5

Quote:
Originally Posted by costel_nistor96
Посмотреть сообщение
Try with this:
Код:
public OnPlayerPause(playerid) 
{ 
new string[128]; 
format(string, sizeof(string),".AFK рлрс моцб %s дщзчп **",GetName(playerid)); 
SendClientMessageToAll(COLOR_ORANGE, string); 
AFK[playerid] = 1; 
TogglePlayerControllable(playerid,0); 
return 0; 
} 
//------------------------------------------------------------------------------ 
public OnPlayerUnpause(playerid) 
{ 
new string[128]; 
format(string, sizeof(string),".AFK йца ооцб %s дщзчп ***",GetName(playerid)); 
SendClientMessageToAll(COLOR_GREEN, string); 
TogglePlayerControllable(playerid,1); 
AFK[playerid] = 0; 
return 0; 
} 
//------------------------------------------------------------------------------
Not working

Quote:
Originally Posted by MrDeath537
Посмотреть сообщение
That's the right code, you were doing this:

pawn Код:
public OnPlayerPause(playerid) // called when the player PAUSES
{
    if (!YUP_IsPlayerPaused(playerid)) // Checking if the player ISN'T paused.
Not working..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)