29.09.2010, 04:34
Quote:
Hey pro scripter, if i pay you can you fix the problem i have in the topic above me?
|
You need to create the commands, use dcmd or zcmd. When finished it will look something like this (this code is untested):
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(login, 5, cmdtext); dcmd(register, 8, cmdtext); return 1; } dcmd_login(playerid, params) { ShowPlayerDialog(playerid,201,DIALOG_STYLE_INPUT,"Registration",Please enter a password to register this account!","Register","Cancel"); return 1; } dcmd_register(playerid, params) { ShowPlayerDialog(playerid,200,DIALOG_STYLE_INPUT,"Login","Please enter a password to login to this account!","Login","Cancel"); return 1; }