hi
i got this error:
and the lines :
what is my mistake ?
what i must to do ?
<3 :*
i got this error:
HTML Code:
gm.pwn(20829) : warning 217: loose indentation
gm.pwn(20836) : warning 217: loose indentation
gm.pwn(39369) : error 017: undefined symbol "idz"
gm.pwn(39371) : error 017: undefined symbol "idz"
gm.pwn(39373) : error 017: undefined symbol "idz"
gm.pwn(39380) : error 017: undefined symbol "idz"
gm.pwn(39387) : error 017: undefined symbol "idz"
gm.pwn(39387) : error 017: undefined symbol "cmd"
gm.pwn(39388) : error 017: undefined symbol "idz"
gm.pwn(39390) : error 017: undefined symbol "idz"
gm.pwn(39392) : error 017: undefined symbol "idz"
gm.pwn(39392) : error 017: undefined symbol "cmd"
gm.pwn(39393) : error 017: undefined symbol "idz"
gm.pwn(39395) : error 017: undefined symbol "idz"
gm.pwn(39402) : error 017: undefined symbol "CreatedCar"
gm.pwn(39403) : error 017: undefined symbol "CreatedCar"
gm.pwn(39404) : error 017: undefined symbol "CreatedCar"
gm.pwn(39404) : warning 215: expression has no effect
gm.pwn(39407) : error 017: undefined symbol "string"
gm.pwn(39407) : error 017: undefined symbol "string"
gm.pwn(39407) : error 029: invalid expression, assumed zero
gm.pwn(39407) : fatal error 107: too many error messages on one line
HTML Code:
CMD:spawncar(playerid, params[])
{
if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_DARKNICERED,"{FFFFFF}{FFFFFF}You Account Is {ff0000}Blocked{ffffff} | Use {ff0000}/Pin{ffffff} To Unlock That");
if(PlayerInfo[playerid][pAdmin] >= 2) return SendClientMessage(playerid, COLOR_LIGHTRED, "Error: Your Admin level isn't high enough to use this command.");
//idz = strtok(cmd, idx);
if(!strlen(idz)) return SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /veh <ModelName/ID> <ColorID1> <ColorID2>");
new car;
if(IsNumeric(idz))
{
car = strval(idz);
if(car < 400 || car > 611) return SendClientMessage(playerid, COLOR_LIGHTRED, "Vehicle Number can't be below 400 or above 611");
}
else
{
for(new i = 0;i<212;i++)
{
if(strfind(aVehicleNames[i], idz, true) != -1)
{
car = i+400;
}
}
}
if(car == 0) return SCM(playerid, COLOR_LIGHTGREEN, "Invalid vehicle name.");
idz = strtok(cmd, idx);
if(!strlen(idz)) return SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /veh <ModelName/ID> <ColorID1> <ColorID2>");
new color1;
color1 = strval(idz);
if(color1 < 0 || color1 > 255) return SendClientMessage(playerid, COLOR_LIGHTRED, "Color Number can't be below 0 or above 255");
idz = strtok(cmd, idx);
if(!strlen(idz)) return SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /veh <ModelName/ID> <ColorID1> <ColorID2>");
new color2;
color2 = strval(idz);
if(color2 < 0 || color2 > 255) return SendClientMessage(playerid, COLOR_LIGHTRED, "Color Number can't be below 0 or above 255");
new Float:X,Float:Y,Float:Z,Float:angle;
GetPlayerFacingAngle(playerid,angle);
GetPlayerPos(playerid, X,Y,Z);
new carid = CreateVehicle(car, X,Y,Z+1, angle, color1, color2, -1);
SetVehicleNumberPlate(carid, "{F90000}Admin Veh");
CreatedCars[CreatedCar] = carid;
IsValidAVeh[CreatedCars[CreatedCar]] = true;
CreatedCar ++;
new xn[512];
GetPlayerName(playerid, xn, sizeof(xn));
format(string, sizeof(string), "[AdmCmd]: {00FF00}%s {FFFFFF}Has Spawned A {009BFF}%s.",xn,carid);
ABroadCast(COLOR_AdminWarn, string, 4);
format(string,sizeof(string),"VehLog: %s has spawned car model %d.",xn,carid);
Adminlog(string);
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
PutPlayerInVehicle(playerid, carid, 0);
VehOwned[carid] = 2;
VehOwner[carid] = playerid;
return 1;
}
CMD:car(playerid, params[])
{
return cmd_spawncar(playerid, params);
}
CMD:veh(playerid, params[])
{
return cmd_spawncar(playerid, params);
}
CMD:vehn(playerid, params[])
{
if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_DARKNICERED,"{FFFFFF}{FFFFFF}You Account Is {ff0000}Blocked{ffffff} | Use {ff0000}/Pin{ffffff} To Unlock That");
if(PlayerInfo[playerid][pAdmin] >= 3) return SendClientMessage(playerid, COLOR_LIGHTRED, "Error: Your Admin level isn't high enough to use this command.");
//idz = strtok(cmd, idx);
if(!strlen(idz)) {
SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /vehn <ModelName/ID> <ColorID1> <ColorID2> <Point> <Count>");
SCM(playerid,COLOR_LIGHTGREEN,"Stand toward Weast or East.");
return 1;
}
new car;
if(IsNumeric(idz))
{
car = strval(idz);
if(car < 260 || car > 611) return SendClientMessage(playerid, COLOR_LIGHTRED, "Vehicle Number can't be below 250 or above 250");
}
else
{
for(new i = 0;i<212;i++)
{
if(strfind(aVehicleNames[i], idz, true) != -1)
{
car = i+400;
}
}
}
if(car == 0) return SCM(playerid, COLOR_LIGHTGREEN, "Invalid vehicle name.");
idz = strtok(cmd, idx);
if(!strlen(idz)) return SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /vehn <ModelName/ID> <ColorID1> <ColorID2> <Point> <Count>");
new color1;
color1 = strval(idz);
//if(color1 < 0 || color1 > 255) return SendClientMessage(playerid, COLOR_ARYAN, "Color Number can't be below 0 or above 255");
idz = strtok(cmd, idx);
if(!strlen(idz)) return SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /vehn <ModelName/ID> <ColorID1> <ColorID2> <Point> <Count>");
new color2;
color2 = strval(idz);
if(color2 < 0 || color2 > 255) return SendClientMessage(playerid, COLOR_LIGHTRED, "Color Number can't be below 0 or above 255");
idz = strtok(cmd, idx);
if(!strlen(idz)) return SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /vehn <ModelName/ID> <ColorID1> <ColorID2> <Point> <Count>");
new dis;
dis = strval(idz);
if(dis < 2) return SendClientMessage(playerid, COLOR_LIGHTRED, "Distance point can't be below 2");
idz = strtok(cmd, idx);
if(!strlen(idz)) return SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /vehn <ModelName/ID> <ColorID1> <ColorID2> <Point> <Count>");
new count;
count = strval(idz);
new c = count%2;
//if(c != 0 || count == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Count must be an even.");
new Float:X,Float:Y,Float:Z,Float:angle;
GetPlayerFacingAngle(playerid,angle);
GetPlayerPos(playerid, X,Y,Z);
new carid,disx,carid2;
for(new i=1;i<(count/2)+1;i++) {
disx = i*dis;
carid = CreateVehicle(car, X+disx,Y,Z+1, angle, color1, color2, -1);
carid2 = CreateVehicle(car, X-disx,Y,Z+1, angle, color1, color2, -1);
SetVehicleNumberPlate(carid, "{F90000}Admin Veh");
SetVehicleNumberPlate(carid2, "{F90000}Admin Veh");
CreatedCars[CreatedCar] = carid;
CreatedCar ++;
CreatedCars[CreatedCar] = carid2;
CreatedCar ++;
IsValidAVeh[carid2] = true;
IsValidAVeh[carid] = true;
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
LinkVehicleToInterior(carid2, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carid2, GetPlayerVirtualWorld(playerid));
}
return 1;
}
CMD:vehe(playerid, params[])
{
if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_DARKNICERED,"{FFFFFF}{FFFFFF}You Account Is {ff0000}Blocked{ffffff} | Use {ff0000}/Pin{ffffff} To Unlock That");
if(PlayerInfo[playerid][pAdmin] >= 3) return SendClientMessage(playerid, COLOR_LIGHTRED, "Error: Your Admin level isn't high enough to use this command.");
//idz = strtok(cmd, idx);
if(!strlen(idz)) {
SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /vehe <ModelName/ID> <ColorID1> <ColorID2> <Point> <Count>");
SCM(playerid,COLOR_LIGHTGREEN,"Stand toward North or South.");
return 1;
}
new car;
if(IsNumeric(idz))
{
car = strval(idz);
if(car < 260 || car > 611) return SendClientMessage(playerid, COLOR_LIGHTRED, "Vehicle Number can't be below 250 or above 250");
}
else
{
for(new i = 0;i<212;i++)
{
if(strfind(aVehicleNames[i], idz, true) != -1)
{
car = i+400;
}
}
}
if(car == 0) return SCM(playerid, COLOR_LIGHTGREEN, "Invalid vehicle name.");
idz = strtok(cmd, idx);
if(!strlen(idz)) return SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /vehe <ModelName/ID> <ColorID1> <ColorID2> <Point> <Count>");
new color1;
color1 = strval(idz);
//if(color1 < 0 || color1 > 255) return SendClientMessage(playerid, COLOR_ARYAN, "Color Number can't be below 0 or above 255");
idz = strtok(cmd, idx);
if(!strlen(idz)) return SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /vehe <ModelName/ID> <ColorID1> <ColorID2> <Point> <Count>");
new color2;
color2 = strval(idz);
if(color2 < 0 || color2 > 255) return SendClientMessage(playerid, COLOR_LIGHTRED, "Color Number can't be below 0 or above 255");
idz = strtok(cmd, idx);
if(!strlen(idz)) return SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /vehe <ModelName/ID> <ColorID1> <ColorID2> <Point> <Count>");
new dis;
dis = strval(idz);
if(dis < 2) return SendClientMessage(playerid, COLOR_LIGHTRED, "Distance point can't be below 2");
idz = strtok(cmd, idx);
if(!strlen(idz)) return SendClientMessage(playerid, COLOR_YELLOW, "Syntax: /vehe <ModelName/ID> <ColorID1> <ColorID2> <Point> <Count>");
new count;
count = strval(idz);
new c = count%2;
//if(c != 0 || count == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Count must be an even.");
new Float:X,Float:Y,Float:Z,Float:angle;
GetPlayerFacingAngle(playerid,angle);
GetPlayerPos(playerid, X,Y,Z);
new carid,disx,carid2;
for(new i=1;i<(count/2)+1;i++) {
disx = i*dis;
carid = CreateVehicle(car, X,Y+disx,Z+1, angle, color1, color2, -1);
carid2 = CreateVehicle(car, X,Y-disx,Z+1, angle, color1, color2, -1);
SetVehicleNumberPlate(carid, "{F90000}Admin Veh");
SetVehicleNumberPlate(carid2, "{F90000}Admin Veh");
CreatedCars[CreatedCar] = carid;
CreatedCar ++;
CreatedCars[CreatedCar] = carid2;
CreatedCar ++;
IsValidAVeh[carid2] = true;
IsValidAVeh[carid] = true;
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
LinkVehicleToInterior(carid2, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carid2, GetPlayerVirtualWorld(playerid));
}
return 1;
}
CMD:davm(playerid, params[])
{
if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_DARKNICERED,"{FFFFFF}{FFFFFF}You Account Is {ff0000}Blocked{ffffff} | Use {ff0000}/Pin{ffffff} To Unlock That");
if(PlayerInfo[playerid][pAdmin] >= 3) return SendClientMessage(playerid, COLOR_LIGHTRED, AdminOnly);
for(new i = akharinvehicle;i < MAX_VEHICLES;i++)
{
if(VehOwned[i] == 2 && VehOwner[i] == playerid) {
VehOwned[i] = 0;
VehOwner[i] = 9999;
DestroyVehicle(i);
}
}
format(string,256,"[AdmWarn]: {FFFFFF}Admin {00FF00}%s {FFFFFF}Deleted All Created Cars By HimSelf/HerSelf",PlayerInfo[playerid][pName]);
ABroadCast(COLOR_AdminWarn,string,1);
return 1;
}
what i must to do ?
<3 :*