18.02.2013, 20:06
Basically, I am scripting an MDC system and need the ability to search a player's record -which involves reading from their file, but I don't want to make the player HAVE to be In-Game to make it work.
This is what I have:
And I am getting the following errors:
This is needed for my MDC system, so I will greatly appreciate whomever helps me, I am truly confused...
This is what I have:
pawn Код:
case 9996: //MDC Front Screen
{
new string2[128];
new string[256];
format(string2, sizeof(string2), "Accounts/%s.ini", inputtext);
if(!fexist(string2))
{
ShowPlayerDialog(playerid, 9996, DIALOG_STYLE_INPUT, "MDC Desktop...", "Enter a civilian's name to continue...\n{FF0000}ERROR: Civilian not found!", "Enter", "Cancel");
}
else
{
new id = strval(inputtext);
strcat(string,"Total Wanted Levels: {BFFFFF}%d\n{FFFFFF}Total Arrests: {BFFFFF}%d\nTotal Fines: {BFFFFF}%d\n{FFFFFF}Total Tickets: {BFFFFF}%d", Player[id][CriminalOffences], Player[id][TimesArrested], Player[id][TimesFined], Player[id][TimesTicketed]); //4653
strcat(string,"\n{FFFFFF}Registered Vehicle No. 1: {BFFFFF}%s\n{FFFFFF}RegisteredVehicle No. 2: {BFFFFF}%s\n{FFFFFF}Registered Vehicle No. 3: {BFFFFF}%s", VehicleModel [model1] (inputtext) - 400], VehicleModel [[Player[sName][PlayerCarModel2] (inputtext) - 400], VehicleModel [[Player[inputtext][PlayerCarModel3] (inputtext) - 400]); //4654
SendClientMessage(playerid, 9997, DIALOG_STYLE_LIST, "Select one for more details...", string, "Back", "Close");
}
return 1;
}
pawn Код:
C:\Users\namder\Desktop\Lost Life Roleplay\gamemodes\Lost.pwn(4653) : warning 202: number of arguments does not match definition
C:\Users\namder\Desktop\Lost Life Roleplay\gamemodes\Lost.pwn(4653) : warning 202: number of arguments does not match definition
C:\Users\namder\Desktop\Lost Life Roleplay\gamemodes\Lost.pwn(4653) : warning 202: number of arguments does not match definition
C:\Users\namder\Desktop\Lost Life Roleplay\gamemodes\Lost.pwn(4654) : error 012: invalid function call, not a valid address
C:\Users\namder\Desktop\Lost Life Roleplay\gamemodes\Lost.pwn(4654) : warning 215: expression has no effect
C:\Users\namder\Desktop\Lost Life Roleplay\gamemodes\Lost.pwn(4654) : error 001: expected token: ";", but found ")"
C:\Users\namder\Desktop\Lost Life Roleplay\gamemodes\Lost.pwn(4654) : error 029: invalid expression, assumed zero
C:\Users\namder\Desktop\Lost Life Roleplay\gamemodes\Lost.pwn(4654) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.