Two problems about sa-mp
#5

Quote:
Originally Posted by RedJohn
Посмотреть сообщение
Try this to remove SERVER:Unknown command

With error message:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   // codes here
   return SendClientMessage(playerid, color, "Blah blah blah");
}
Without error message:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   // codes here
   return 1
}
Error: Line not closed "return 1".


pawn Код:
if(strcmp(cmdtext,"/wantedcar",true) == 0)
{
        new zalamsucuk[128];
        format(zalamsucuk,128,"The wanted car is %s,you will get $%d when you bring it.\n",VehicleNames[carid-400],carprice);
        ShowPlayerDialog(playerid,3440,DIALOG_STYLE_MSGBOX,"Wanted Car",zalamsucuk,"OK","");
        return 1;
}
If that doesn't work, please post the VehicleNames and carid definitions etc.

NOTE: It most likely or definitely will not work xD Please post your definitions.

Oh, and SAMP does not support the character '%'. This is normal and happens in every server, do not worry about it, might be fixed in later versions of 0.3e or 0.3f+.
Reply


Messages In This Thread
Two problems about sa-mp - by Nightmare[TR] - 07.07.2012, 21:21
Re: Two problems about sa-mp - by Roko_foko - 07.07.2012, 21:30
Re: Two problems about sa-mp - by Nightmare[TR] - 07.07.2012, 21:32
Re: Two problems about sa-mp - by RedJohn - 08.07.2012, 11:13
Re: Two problems about sa-mp - by clarencecuzz - 08.07.2012, 11:19
Re: Two problems about sa-mp - by RedJohn - 08.07.2012, 11:24
Re: Two problems about sa-mp - by Nightmare[TR] - 08.07.2012, 13:00
Re: Two problems about sa-mp - by Andregood - 08.07.2012, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)