23.03.2016, 12:11
Quote:
That has to come inside the curly brackets of the OnPlayerCommandText callback:
PHP код:
PHP код:
|
C:\Users\User\Desktop\Server\gamemodes\server.pwn( 41957) : error 037: invalid string (possibly non-terminated string)
C:\Users\User\Desktop\Server\gamemodes\server.pwn( 41957) : warning 215: expression has no effect
C:\Users\User\Desktop\Server\gamemodes\server.pwn( 41957) : error 001: expected token: ";", but found ")"
C:\Users\User\Desktop\Server\gamemodes\server.pwn( 41957) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Server\gamemodes\server.pwn( 41957) : fatal error 107: too many error messages on one line
-------------------------------------------------
It's what I put -
public OnPlayerCommandText(playerid, cmdtext[]) {
if(!strcmp("/Updates", cmdtext, true))
{
ShowPlayerDialog(playerid, 1239, DIALOG_STYLE_MSGBOX, "Updates", "23/03/2016/nNew Objects and /sb command", "Done, "");
return 1;
}
return 0;
}