24.03.2011, 00:02
Errors
line
Please Help Me Guys
Код:
C:\Users\Vijay_Rasigan\Desktop\CR-RP(LS)\CR-RP(LS)\GameModes\RWRP.pwn(25881) : error 029: invalid expression, assumed zero C:\Users\Vijay_Rasigan\Desktop\CR-RP(LS)\CR-RP(LS)\GameModes\RWRP.pwn(25881) : error 017: undefined symbol "cmd_vcreate" C:\Users\Vijay_Rasigan\Desktop\CR-RP(LS)\CR-RP(LS)\GameModes\RWRP.pwn(25881) : error 029: invalid expression, assumed zero C:\Users\Vijay_Rasigan\Desktop\CR-RP(LS)\CR-RP(LS)\GameModes\RWRP.pwn(25881) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
CMD:vcreate(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 99998) return SendClientMessage(playerid, COLOR_RED, "You must be admin to use this command!");
new
Float:Pos[4],
ivModel,
ivPrice,
ivColors[2],
iMsg[148];
if(sscanf(params, "iiii", ivModel, ivPrice, ivColors[0], ivColors[1])) return SendClientMessage(playerid, -1, ""#CRED"Usage: "#CORANGE"/VCreate < Vehicle Model > < Price > < Color 1 > < Color 2 >");
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
GetPlayerFacingAngle(playerid, Pos[3]);
Created++;
vInfo[Created][vModel] = ivModel;
vInfo[Created][vColor1] = ivColors[0];
vInfo[Created][vColor2] = ivColors[1];
vInfo[Created][vPrice] = ivPrice;
vInfo[Created][vPosX] = Pos[0];
vInfo[Created][vPosY] = Pos[1];
vInfo[Created][vPosZ] = Pos[2];
vInfo[Created][vPosA] = Pos[3];
strmid(vInfo[Created][vOwner], "Unbought", 0, 20, 20);
strmid(vInfo[Created][vPlate], "ChangeME", 0, 32, 32);
new
vFile[15];
format(vFile, sizeof(vFile), "%d.ini", Created);
INI_Open(vFile);
INI_WriteInt("Model", vModel);
INI_WriteInt("Color1", ivColors[0]);
INI_WriteInt("Color2", ivColors[1]);
INI_WriteInt("Price", ivPrice);
INI_WriteString("Owner", "Unbought");
INI_WriteFloat("vPosX", Pos[0]);
INI_WriteFloat("vPosY", Pos[1]);
INI_WriteFloat("vPosZ", Pos[2]);
INI_WriteFloat("vPosA", Pos[3]);
INI_WriteString("Plate", "ChangeME");
INI_Save();
INI_Close();
new
cCar = CreateVehicle(ivModel, Pos[0], Pos[1], Pos[2], Pos[3], ivColors[0], ivColors[1], 500000);
SetVehicleNumberPlate(cCar, "ChangeME");
ivCreated[cCar] = Created;
SavePrivVeh(Created);
format(iMsg, sizeof(iMsg), ""#CYELLOW"Vehicle: "#CBLUE"%i (VID: %i) "#CYELLOW"has been created. Price: "#CBLUE"$%i "#CYELLOW"Plate: "#CBLUE"ChangeME", ivModel, Created, ivPrice);
SendClientMessage(playerid, -1, iMsg);
return 1;
}