11.10.2014, 00:53
Okay. But now I'm getting this error
I will keep that in mind once I get better at scripting.
Код HTML:
C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Los Santos Realism\gamemodes\LS-R.pwn(117) : error 001: expected token: ";", but found "-identifier-" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/buycar", true) == 0) { ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Car Dealership", "Huntley\nAdmiral\nBurrito\nStratum\nSadler\nUranus", "Buy", "Close"); return 1; } if(strcmp(cmdtext, "/stats", true) == 0) { new string[144]; format(string, sizeof(string), "Money: [$%d]", PlayerInfo[playerid][pMoney]) SendClientMessage(playerid, COLOR_GREEN, string); // LINE 117 return 1; } return 1; }