- เครดิต
- 77
- ความรู้
-
- เงิน $
-
- ความดี
-
|
public OnPlayerConnect(playerid)//¢éͤÇÒÁà¢éÒ
{
new pname[MAX_PLAYER_NAME], path[200];
GetPlayerName(playerid, pname, sizeof(pname));
format(path, sizeof(path), "%s.ini", pname);
//============================//
if(!dini_Exists(path))
{
// äÁèÁպѪռÙéãªé
ShowPlayerDialog(playerid, DIALOG_REGISTER1, DIALOG_STYLE_INPUT, "Register", "¡ÃÍ¡ÃËÑʼèÒ¹·Õèµéͧ¡ÒÃ", "µ¡Å§", "¡àÅÔ¡");
}
else
{
//ÊÁѤÃÃËÑʼèÒ¹áÅéÇ
ShowPlayerDialog(playerid, DIALOG_LOGIN1, DIALOG_STYLE_INPUT, "Login", "¡ÃÍ¡ÃËÑʼèÒ¹¢Í§¤Ø³·Õèŧ·ÐàºÕ¹äÇé", "µ¡Å§", "¡àÅÔ¡");
}
//============================//
return 1;
}
{
(151) playerconn++;
SendClientMessage(playerid,0x6E6E6E,"Welcome to DarkCity");
format(string,sizeof(string),"%d",playerconn);
SendClientMessageToAll(0x6E6E6E,"");
format(string,sizeof(string),"%sà¨éÒä´éà¢éÒÊÙèDarkCity¢éÒ¢ÍãËéà¨éÒÍÂÙèÃÍ´»ÅÍ´ÀÑÂáÅéǡѹ",pname);
SendClientMessageToAll(0x6E6E6E,string);
}
(151) : error 055: start of function body without function header
แก้ไงครับ
|
|