07.07.2012, 21:21
Hi,i developed a car system.System moves like this;
Game selects a random car,creates a checkpoint when you bring the car at checkpoint it gives you money.
For learning which car is wanted,i developed a wanted car command.But there is weirdness it says
SERVER: Unknown command.
But this is impossible because my commandtext return is like this:
I checked 1000 times,there is no return 0; in OnPlayerCommandText :S
I spoke too much,that's the code;
And the other problem is,when i write '%' in-game chat,it shows like #,why is this? :S
Game selects a random car,creates a checkpoint when you bring the car at checkpoint it gives you money.
For learning which car is wanted,i developed a wanted car command.But there is weirdness it says
SERVER: Unknown command.
But this is impossible because my commandtext return is like this:
pawn Код:
return ShowPlayerDialog(playerid,1234,DIALOG_STYLE_MSGBOX,"Info","Command is unknown,please use /help","OK","");
I spoke too much,that's the code;
pawn Код:
if(!strcmp(cmdtext,"/wantedcar",true))
{
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;
}
And the other problem is,when i write '%' in-game chat,it shows like #,why is this? :S