07.02.2010, 20:23
It wouldn't change anything.
And for future note, "new VariabledArray[Size]=Number;" will only set the first cell (VariabledArray[0]) to the 'Number'. you have to do "new VariabledArray[Size]={Number,...};"
Here's your code re-indented and corrected... It should work
*edit, changed, I was using wrong function
And for future note, "new VariabledArray[Size]=Number;" will only set the first cell (VariabledArray[0]) to the 'Number'. you have to do "new VariabledArray[Size]={Number,...};"
Here's your code re-indented and corrected... It should work
pawn Код:
if(!strcmp(cmd, "/windows", true) || !strcmp(cmd, "/wi", true))
{
if(!gPlayerLogged[playerid])return SendClientMessage(playerid, COLOR_GREY, " You need to login first ! ");
if(IsPlayerInAnyVehicle(playerid))
{
if(!VehicleWindows[GetPlayerVehicleID(playerid)])
{
VehicleWindows[GetPlayerVehicleID(playerid)] = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "***%s rolls down the window.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
for(new ply;ply<MAX_PLAYERS;ply)ShowPlayerNameTagForPlayer(ply, playerid, false);
}else{
VehicleWindows[GetPlayerVehicleID(playerid)] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "***%s rolls up the window.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
for(new ply;ply<MAX_PLAYERS;ply)ShowPlayerNameTagForPlayer(ply, playerid, true);
}
}
else return SendClientMessage(playerid, COLOR_GREY, " You need to be in the vehicle to use this function !");
return 1;
}

