13.08.2016, 09:46
title.
This is my code:
it doesn't execute this:
Why is that?
This is my code:
PHP код:
else if(!strcmp(tmp, "list", true, 5))
{
new iBigStr[386];
SendClientMessage(playerid, -1, "{3696EB}________________________________________________________________________");
for(new i = 1; i < sizeof(Vehicle); i++)
{
if(!strcmp(Vehicle[i][vOwner], Name(playerid), false))
{
new zone[ 80 ], Float:vipos[3], lockstr[10];
if(Vehicle[i][tmplocked]) myStrcpy(lockstr, "Yes");
else myStrcpy(lockstr, "No");
GetVehiclePos(i, vipos[0], vipos[1], vipos[2]);
GetZone(vipos[0], vipos[1], vipos[2], zone);
format(iBigStr, sizeof(iBigStr), "{bebaba}(ID %d) {51983e}%s [Location: {bebaba}%s{51983e}] [Locked: {bebaba}%s{51983e}]", i, GetVehicleName(i), zone, lockstr);
SendClientMessage(playerid, -1, iBigStr);
}
else return 1;
}
SendClientMessage(playerid, -1, "{3696EB}________________________________________________________________");
}
PHP код:
else if(!strcmp(tmp, "list", true, 5))
{
new iBigStr[386];
SendClientMessage(playerid, -1, "{3696EB}________________________________________________________________________");
for(new i = 1; i < sizeof(Vehicle); i++)
{
if(!strcmp(Vehicle[i][vOwner], Name(playerid), false))
{
new zone[ 80 ], Float:vipos[3], lockstr[10];
if(Vehicle[i][tmplocked]) myStrcpy(lockstr, "Yes");
else myStrcpy(lockstr, "No");
GetVehiclePos(i, vipos[0], vipos[1], vipos[2]);
GetZone(vipos[0], vipos[1], vipos[2], zone);
format(iBigStr, sizeof(iBigStr), "{bebaba}(ID %d) {51983e}%s [Location: {bebaba}%s{51983e}] [Locked: {bebaba}%s{51983e}]", i, GetVehicleName(i), zone, lockstr);
SendClientMessage(playerid, -1, iBigStr);
}
else return 1;
}
// THIS SendClientMessage(playerid, -1, "{3696EB}________________________________________________________________");
}