SA-MP Forums Archive
I have problem after register complete!! - 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: I have problem after register complete!! (/showthread.php?tid=651000)



I have problem after register complete!! - Charisma - 11.03.2018

How to fix that?

After I register character my screen is black !!

Script Base Roleplay

Quote:

this::SetupConfirmed(playerid)
{
if (PlayerInfo[playerid][pSetupInfo])
{
for (new i = 0; i < 16; i ++) {
PlayerTextDrawDestroy(playerid, SetUp[playerid][i]);
}

SetPlayersSpawn(playerid);
//SpawnPlayer(playerid);

TogglePlayerControllable(playerid, 1);
CancelSelectTextDraw(playerid);

for (new i = 0; i < 30; i ++)
{
SendClientMessage(playerid, COLOR_GREY, " ");
}
SendServerMessage(playerid, "You have spawned at the Los Santos International Airport.");
SendServerMessage(playerid, "There are some rental vehicles located nearby for transportation or you can call an cab to transport you.");
}
}




Re: I have problem after register complete!! - Charisma - 11.03.2018




Re: I have problem after register complete!! - Mike861 - 11.03.2018

Код:
TextDrawHideForPlayer(playerid, SetUp[playerid]);
Try to put that instead of PlayerTextDrawDestroy or cancel textdraw if it has the same function of hiding it.


Re: I have problem after register complete!! - Charisma - 11.03.2018

Quote:
Originally Posted by Mike861
Посмотреть сообщение
Код:
TextDrawHideForPlayer(playerid, SetUp[playerid]);
Try to put that instead of PlayerTextDrawDestroy or cancel textdraw if it has the same function of hiding it.
I try TextdrawHideForPlayer before use PlayerTextDrawDestroy but is same problem.


Re: I have problem after register complete!! - Charisma - 11.03.2018

Dumpppp


Re: I have problem after register complete!! - Charisma - 11.03.2018

Thank, I can fix that


Re: I have problem after register complete!! - wallen - 11.03.2018

From where did you downloaded this gamemode?