Welcome warning
#4

Quote:
Originally Posted by pds2012
Посмотреть сообщение
You haven't used it, you only did on OnGameModeInit Try To put it OnPlayerConnect
pawn Код:
new Text:welcomeText;//Global Variable
new Text:infoText;//Global Variable

public OnGameModeInit
{
//Rest of codes
return 1;
}
public OnPlayerConnect
{
welcomeText = TextDrawCreate(430,5,"~w~www.***********.com");
infoText = TextDrawCreate(445,100, "~b~/cmds ~w~- /news -  ~r~/rules");
//Rest of codes
return 1;
}

public OnPlayerSpawn // to hide your text and for lress bugs
TextDrawHideForPlayer(playerid, welcometext);
TextDrawHideForPlayer(playerid, infotext);
//Rest of codes
return 1;
}
you're wrong, try this
pawn Код:
new Text:welcomeText;//Global Variable
new Text:infoText;//Global Variable

public OnGameModeInit
{
welcomeText = TextDrawCreate(430,5,"~w~www.***********.com");
infoText = TextDrawCreate(445,100, "~b~/cmds ~w~- /news -  ~r~/rules");
//Rest of codes
return 1;
}
public OnPlayerConnect
{
TextDrawShowForPlayer(playerid,welcomeText);
TextDrawShowForPlayer(playerid,infoText);
//Rest of codes
return 1;
}

public OnPlayerDisconnect(playerid,reason)
{ // to hide your text and for lress bugs
TextDrawHideForPlayer(playerid, welcomeText);
TextDrawHideForPlayer(playerid, infoText);
//Rest of codes
return 1;
}
Reply


Messages In This Thread
Welcome warning - by shoaib_sait - 30.01.2013, 14:34
Re: Welcome warning - by SKAzini - 30.01.2013, 14:53
Re: Welcome warning - by Patrick - 30.01.2013, 14:55
Re: Welcome warning - by mineralo - 30.01.2013, 15:02
Re: Welcome warning - by SKAzini - 30.01.2013, 15:05

Forum Jump:


Users browsing this thread: 2 Guest(s)