SA-MP Forums Archive
Help me! Onplayerload - 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: Help me! Onplayerload (/showthread.php?tid=638006)



Help me! Onplayerload - ducmcmca1 - 25.07.2017

How to add code on onplayerload: https://pastebin.com/TG0nVHYd
I add code error:



Re: Help me! Onplayerload - DonaldDuck - 25.07.2017

Код:
public OnPlayerLoad(playerid)
{
       //Write your code here.
	return 1;
}



Re: Help me! Onplayerload - ducmcmca1 - 25.07.2017

Quote:
Originally Posted by DonaldDuck
Посмотреть сообщение
Код:
public OnPlayerLoad(playerid)
{
       //Write your code here.
	return 1;
}
Onplayerload (playerid)
{

new masobaove;
new szKey[5];
new result;
if (PlayerInfo[playerid][pMatKhaus] == 2)
{
masobaove = PlayerInfo[playerid][pMabaomat];
valstr(szKey, masobaove);
ShowPlayerKeypad(playerid, 2, szKey);
}
if(result == CREATEKEYPAD_RETURN_INVALID_ID) return SendClientMessage(playerid, COLOR_RED, "Invalid keypad ID passed to CreateKeypad().");
if(result == CREATEKEYPAD_RETURN_NUM) return SendClientMessage(playerid, COLOR_RED, "Invalid keypad string (non-numerical) passed to CreateKeypad().");
return 1;
}
?