Whats wrong with this?
#1

public OnPlayerCommandText(playerid, cmdtext[])
{
COMMANDtunt(playerid,params[])
{
ShowPlayerDialog(playerid,42,DIALOG_STYLE_LIST,"{F F002B}HayZatic Stunt Selection","{F2C80C}Stunt 1 - Cost: $1000\n","GoTo!","Close");
return 1;
}

Код:
C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\gamemodes\FreeRoam.pwn(1389) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\gamemodes\FreeRoam.pwn(1389) : error 017: undefined symbol "cmd_stunt"
C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\gamemodes\FreeRoam.pwn(1389) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\gamemodes\FreeRoam.pwn(1389) : fatal error 107: too many error messages on one line
Reply
#2

Don't use this in OnPlayerCommandText ! Actually, you have to remove your OnPlayerCommandText, if you use ZCMD.
Reply
#3

Remove from the OnPlayerCommandText callback, and place at the bottom of your script.

PHP код:
COMMAND:tunt(playerid,params[])
{
    
ShowPlayerDialog(playerid,42,DIALOG_STYLE_LIST,"{F F002B}HayZatic Stunt Selection","{F2C80C}Stunt 1 - Cost: $1000\n","GoTo!","Close");
    return 
1;

Reply
#4

Quote:
Originally Posted by MoroDan
Посмотреть сообщение
Don't use this in OnPlayerCommandText ! Actually, you have to remove your OnPlayerCommandText, if you use ZCMD.
now i got

Код:
C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\gamemodes\FreeRoam.pwn(1516) : error 021: symbol already defined: "SendClientMessage"
C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\gamemodes\FreeRoam.pwn(1518) : error 010: invalid function or declaration
C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\gamemodes\FreeRoam.pwn(1631) : error 010: invalid function or declaration
C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\gamemodes\FreeRoam.pwn(3356) : error 004: function "zcmd_OnPlayerCommandText" is not implemented
C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\gamemodes\FreeRoam.pwn(3361) : error 004: function "zcmd_OnPlayerCommandText" is not implemented
C:\Documents and Settings\Chris\Desktop\Desktop\Mastalol\Grand Theft Auto San Andreas Samp Server\gamemodes\FreeRoam.pwn(3381) : warning 203: symbol is never used: "cmds"
Reply
#5

You left one or more SendClientMessage, out of OnPlayerCommandText or somewhere.

Something like this:
PHP код:
public OneFunction(...)
{
    ...
}
stock MyOwnFunction(...)
{
    ...
}
SendClientMessage(___);
public 
ETC(...)
{
    ...

Reply
#6

If you use ZCMD.. you need to put it out of all lines..on end of your script..ex

Код:
public OnPlayerCommandText(playerid, cmdtext[];)
{
             //Do SomeThing here!
        return 1;
}
Command:stunt(playerid, params[])
{
ShowPlayerDialog(playerid,42,DIALOG_STYLE_LIST,"{F F002B}HayZatic Stunt Selection","{F2C80C}Stunt 1 - Cost: $1000\n","GoTo!","Close");
return 1;
}
public OnGameModeInit()
{
      SetGameModeText("Stunt..");
      return 1;
}
Do something like that..i didn't put it on end but you see how you need to do it.. i think that works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)